Skip to content

Commit

Permalink
spotless.
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 committed Aug 29, 2023
1 parent e3520f7 commit 67d0701
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1863,9 +1863,12 @@ public void flush(boolean force, boolean waitIfOngoing) throws EngineException {
translogManager.rollTranslogGeneration();
logger.trace("starting commit for flush; commitTranslog=true");
// with Segment Replication we need to hold the latest commit before a new one is created and ensure it is released
// only after the active reader is updated. This ensures that a flush does not wipe out a required commit point file while we are
// only after the active reader is updated. This ensures that a flush does not wipe out a required commit point file
// while we are
// in refresh listeners.
final GatedCloseable<IndexCommit> latestCommit = engineConfig.getIndexSettings().isSegRepEnabled() ? acquireLastIndexCommit(false) : null;
final GatedCloseable<IndexCommit> latestCommit = engineConfig.getIndexSettings().isSegRepEnabled()
? acquireLastIndexCommit(false)
: null;
commitIndexWriter(indexWriter, translogManager.getTranslogUUID());
logger.trace("finished commit for flush");

Expand Down

0 comments on commit 67d0701

Please sign in to comment.