Rename variable in translog simple commit test

This commit renames a variable for clarity in the translog simple commit
test.
This commit is contained in:
Jason Tedor 2017-04-18 23:43:25 -04:00
parent 20181dd0ad
commit 9e0ebc5965
1 changed files with 4 additions and 4 deletions

View File

@ -2246,11 +2246,11 @@ public class TranslogTests extends ESTestCase {
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);
}
}