We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289d4d2 commit 88fadd7Copy full SHA for 88fadd7
src/basho_bench_keygen.erl
@@ -91,9 +91,11 @@ new({sequential_int, MaxKey}, Id)
91
fun() -> sequential_int_generator(Ref, MaxKey, Id, DisableProgress) end;
92
new({partitioned_sequential_int, MaxKey}, Id) ->
93
new({partitioned_sequential_int, 0, MaxKey}, Id);
94
-new({partitioned_sequential_int, StartKey, NumKeys}, Id)
95
- when is_integer(StartKey), is_integer(NumKeys), NumKeys > 0 ->
+new({partitioned_sequential_int, StartKey, NumKeys}, Id) ->
96
Workers = basho_bench_config:get(concurrent),
+ new({partitioned_sequential_int, StartKey, NumKeys, Workers}, Id);
97
+new({partitioned_sequential_int, StartKey, NumKeys, Workers}, Id)
98
+ when is_integer(StartKey), is_integer(NumKeys), NumKeys > 0 ->
99
Range = NumKeys div Workers,
100
MinValue = StartKey + Range * (Id - 1),
101
MaxValue = StartKey +
0 commit comments