Skip to content

Commit

Permalink
Rename variable in translog simple commit test
Browse files Browse the repository at this point in the history
This commit renames a variable for clarity in the translog simple commit
test.
  • Loading branch information
jasontedor committed Apr 19, 2017
1 parent 20181dd commit 9e0ebc5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2246,11 +2246,11 @@ public void testSimpleCommit() throws IOException {
final long generation =
randomIntBetween(1, Math.toIntExact(translog.currentFileGeneration()));
translog.commit(generation);
for (long i = 0; i < generation; i++) {
assertFileDeleted(translog, i);
for (long g = 0; g < generation; g++) {
assertFileDeleted(translog, g);
}
for (long i = generation; i <= translog.currentFileGeneration(); i++) {
assertFileIsPresent(translog, i);
for (long g = generation; g <= translog.currentFileGeneration(); g++) {
assertFileIsPresent(translog, g);
}
}

Expand Down

0 comments on commit 9e0ebc5

Please sign in to comment.