Skip to content

Commit

Permalink
Revert "Fix testKeepTranslogAfterGlobalCheckpoint"
Browse files Browse the repository at this point in the history
This reverts commit ad8db67.
  • Loading branch information
dnhatn committed Feb 25, 2020
1 parent adf3a4f commit 0f5d505
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4891,8 +4891,8 @@ protected void commitIndexWriter(IndexWriter writer, Translog translog, String s
engine.syncTranslog();
}
if (frequently()) {
engine.flush(randomBoolean(), true);
final long lastSyncedGlobalCheckpoint = Translog.readGlobalCheckpoint(translogPath, translogUUID);
engine.flush(randomBoolean(), true);
final List<IndexCommit> commits = DirectoryReader.listCommits(store.directory());
// Keep only one safe commit as the oldest commit.
final IndexCommit safeCommit = commits.get(0);
Expand Down

0 comments on commit 0f5d505

Please sign in to comment.