anchor.diff:  %% ===================================================================
   
   %% @private
  -open_db(DataRoot, Config) ->
  +init_state(DataRoot, Config) ->
       %% Get the data root directory
       filelib:ensure_dir(filename:join(DataRoot, "dummy")),
   
  
positive.code:     WriteBufferMax = config_value(write_buffer_size_max, MergedConfig, 6 * 1024 * 1024),
      WriteBufferSize = WriteBufferMin + random:uniform(1 + WriteBufferMax - WriteBufferMin),
  
      %% Update the write buffer size in the merged config
      FinalConfig0 = orddict:store(write_buffer_size, WriteBufferSize, MergedConfig),
  
      %% Make sure create_if_missing is set to true and filter out any unknown options
      FinalConfig = filter_allowable_options(orddict:store(create_if_missing, true, FinalConfig0)),
  
      %% Open up the DB
      lager:debug("Opening LevelDB in ~s with options: ~p\n", [DataRoot, FinalConfig]),
      case eleveldb:open(DataRoot, FinalConfig) of
          {ok, Ref} ->
              {ok, Ref, FinalConfig};
          {error, Reason} ->
              {error, Reason}
      end.
  
  %% @private
  %% Remove all unknown options from a ELevelDB config
  filter_allowable_options(Config) ->
      Options = [%% Base config options
                 create_if_missing,
                 error_if_exists,
                 write_buffer_size,
                 max_open_files,
                 block_size,
                 block_restart_interval,
                 cache_size,
                 paranoid_checks,
                 compression,
                 use_bloomfilter,
                 verify_checksums,
                 fill_cache,
                 sync,
                 %% Additional configs specific to Riak
                 read_options,
                 write_options,
                 fold_options],
      lists:filter(fun({K, _V}) -> lists:member(K, Options) end, Config).
  
  %% @private
  config_value(Key, Config, Default) ->
  
negative.code: %% @doc Delete all objects from this eleveldb backend
  %% and return a fresh reference.
  -spec drop(state()) -> {ok, state()} | {error, term(), state()}.
  drop(State0) ->
      case eleveldb:destroy(State0#state.data_root, []) of
          ok ->
              case open_db(State0) of
                  {ok, State} ->
                      {ok, State};
                  {error, Reason} ->
                      {error, Reason, State0}
              end;
          {error, Reason} ->
              {error, Reason, State0}
      end.
  
  %% @doc Returns true if this eleveldb backend contains any
  