mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-22 08:46:56 -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