Commits

Anonymous committed 9fe9d86

partitioned_sequential_int with start/numkeys was using the wrong range.

  • Participants
  • Parent commits ce8c57b

Comments (0)

Files changed (1)

File src/basho_bench_keygen.erl

-%% -------------------------------------------------------------------
+ in%% -------------------------------------------------------------------
 %%
 %% basho_bench: Benchmarking Suite
 %%
     MaxValue = StartKey + Range * Id,
     Ref = make_ref(),
     ?DEBUG("ID ~p generating range ~p to ~p\n", [Id, MinValue, MaxValue]),
-    fun() -> sequential_int_generator(Ref,MaxValue) + MinValue end;
+    fun() -> sequential_int_generator(Ref,Range) + MinValue end;
 new({partitioned_sequential_int_bin, MaxKey}, Id) ->
     Gen = new({partitioned_sequential_int, MaxKey}, Id),
     fun() -> <<(Gen()):32/native>> end;