From 9e0ebc5965ae37db552cb35e74d3b740d6ac9193 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 18 Apr 2017 23:43:25 -0400 Subject: [PATCH] Rename variable in translog simple commit test This commit renames a variable for clarity in the translog simple commit test. --- .../org/elasticsearch/index/translog/TranslogTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java b/core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java index 4dd7b2e99b7..4f572f81f33 100644 --- a/core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java +++ b/core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java @@ -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); } }