mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-16 10:52:03 -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][];
|
Object[][] combinations = new Object[modulo][];
|
||||||
|
|
||||||
for (int row = 0; row < combinations.length; row++) {
|
for (int row = 0; row < combinations.length; row++) {
|
||||||
Object[] combination = new Object[allargs.length];
|
Object[] combination = new Object[allargs.length];
|
||||||
int number = row;
|
int number = row;
|
||||||
for (int pos = 0; pos < combination.length; pos++) {
|
for (int pos = 0; pos < combination.length; pos++) {
|
||||||
int selector = (int) (row / modulos[pos]);
|
int selector = (int) (number / modulos[pos]);
|
||||||
combination[pos] = allargs[pos][selector];
|
Object[] allargspos = allargs[pos];
|
||||||
|
Object objectatpos = allargspos[selector];
|
||||||
|
combination[pos] = objectatpos;
|
||||||
number %= modulos[pos];
|
number %= modulos[pos];
|
||||||
}
|
}
|
||||||
combinations[row] = combination;
|
combinations[row] = combination;
|
||||||
|
Loading…
Reference in New Issue
Block a user