Skip to content

Commit 3a41b51

Browse files
committed
Merge pull request #99 from waisbrot/2i-badarith-bug
badarith crash from 2i driver
2 parents 6ff2494 + 72bf11f commit 3a41b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/basho_bench_driver_2i.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ run({query_pb, MaxN}, KeyGen, _ValueGen, State) ->
308308
Bucket = State#state.bucket,
309309
{StartKey, EndKey, MaxKey, N} = expected_n(to_integer(KeyGen()), State#state.max_key, MaxN),
310310
case {riakc_pb_socket:get_index(Pid, Bucket, <<"field1_int">>,
311-
to_binary(StartKey), to_binary(EndKey),
312-
State#state.pb_timeout), MaxKey} of
311+
to_binary(StartKey), to_binary(EndKey),
312+
State#state.pb_timeout, State#state.pb_timeout), MaxKey} of
313313
{{ok, Results}, _} when length(Results) == N ->
314314
{ok, State};
315315
{{ok, Results}, undefined} ->

0 commit comments

Comments
 (0)