mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-26 08:41:05 -06:00
fix WeightedLongs function: member values not allocated
This commit is contained in:
parent
563e792ffb
commit
8a4673d7ce
@ -39,6 +39,7 @@ public class WeightedLongs implements LongFunction<Long> {
|
||||
|
||||
String[] fragments = new String[pairs.length];
|
||||
List<Double> parsedWeights = new ArrayList<>();
|
||||
values = new long[pairs.length];
|
||||
for (int i = 0; i < pairs.length; i++) {
|
||||
String[] pair = pairs[i].split(":", 2);
|
||||
if (pair.length == 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user