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 =
|
final long generation =
|
||||||
randomIntBetween(1, Math.toIntExact(translog.currentFileGeneration()));
|
randomIntBetween(1, Math.toIntExact(translog.currentFileGeneration()));
|
||||||
translog.commit(generation);
|
translog.commit(generation);
|
||||||
for (long i = 0; i < generation; i++) {
|
for (long g = 0; g < generation; g++) {
|
||||||
assertFileDeleted(translog, i);
|
assertFileDeleted(translog, g);
|
||||||
}
|
}
|
||||||
for (long i = generation; i <= translog.currentFileGeneration(); i++) {
|
for (long g = generation; g <= translog.currentFileGeneration(); g++) {
|
||||||
assertFileIsPresent(translog, i);
|
assertFileIsPresent(translog, g);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue