Skip to content

Commit 72bf11f

Browse files
committed
2i driver was crashing
added an extra timeout argument to the get_index call so that the second key arg would make sense
1 parent 6ff2494 commit 72bf11f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)