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:
parent
20181dd0ad
commit
9e0ebc5965
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue