Permalink
Browse files

Fixes that should've been included in the slf-basho_bench-fixes branch

  • Loading branch information...
1 parent 4f97dc4 commit eb3225e4ffdc38410b8d450355949bf0131d56e1 @slfritchie slfritchie committed Feb 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/basho_bench_driver_eldb.erl
@@ -37,15 +37,15 @@ new(Id) ->
ok
end,
- case eleveldb:open(WorkDir, [{create_if_missing, true}]) of
+ case eleveldb:open(WorkDir, [{create_if_missing, true}] ++ Config) of
{ok, Ref} ->
{ok, #state { ref = Ref }};
{error, Reason} ->
{error, Reason}
end.
run(get, KeyGen, _ValueGen, State) ->
- Key = list_to_binary(KeyGen()),
+ Key = iolist_to_binary(KeyGen()),
case eleveldb:get(State#state.ref, Key, []) of
{ok, _Value} ->
{ok, State};
@@ -56,7 +56,7 @@ run(get, KeyGen, _ValueGen, State) ->
end;
run(put, KeyGen, ValueGen, State) ->
print_status(State#state.ref, 1000),
- Key = list_to_binary(KeyGen()),
+ Key = iolist_to_binary(KeyGen()),
case eleveldb:put(State#state.ref, Key, ValueGen(), []) of
ok ->
{ok, State};

0 comments on commit eb3225e

Please sign in to comment.