mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-28 17:51:06 -06:00
fix nesting error in combinations logic
This commit is contained in:
parent
2d1263e3a2
commit
966b434fad
@ -215,12 +215,15 @@ public class VirtDataComposer {
|
||||
}
|
||||
|
||||
Object[][] combinations = new Object[modulo][];
|
||||
|
||||
for (int row = 0; row < combinations.length; row++) {
|
||||
Object[] combination = new Object[allargs.length];
|
||||
int number = row;
|
||||
for (int pos = 0; pos < combination.length; pos++) {
|
||||
int selector = (int) (row / modulos[pos]);
|
||||
combination[pos] = allargs[pos][selector];
|
||||
int selector = (int) (number / modulos[pos]);
|
||||
Object[] allargspos = allargs[pos];
|
||||
Object objectatpos = allargspos[selector];
|
||||
combination[pos] = objectatpos;
|
||||
number %= modulos[pos];
|
||||
}
|
||||
combinations[row] = combination;
|
||||
|
Loading…
Reference in New Issue
Block a user