File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
bindings/java/src/integration/com/apple/foundationdb Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,15 @@ private static synchronized void setupThreads(FDB fdb) {
7373
7474 private static void setup (Collection <Database > dbs ) {
7575 // 0 -> 1 -> 2 -> 3 -> 0
76- for (int k = 0 ; k < cycleLength ; k ++) {
77- String key = Integer .toString (k );
78- String value = Integer .toString ((k + 1 ) % cycleLength );
79-
80- for (Database db : dbs ) {
81- db .run (tr -> {
76+ for (Database db : dbs ) {
77+ db .run (tr -> {
78+ for (int k = 0 ; k < cycleLength ; k ++) {
79+ String key = Integer .toString (k );
80+ String value = Integer .toString ((k + 1 ) % cycleLength );
8281 tr .set (Tuple .from (key ).pack (), Tuple .from (value ).pack ());
83- return null ;
84- }) ;
85- }
82+ }
83+ return null ;
84+ });
8685 }
8786 }
8887
You can’t perform that action at this time.
0 commit comments