Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <[email protected]>
  • Loading branch information
gbbafna committed Oct 22, 2023
1 parent 3d30b65 commit bc94de0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ public TimeValue getRemoteTranslogUploadBufferInterval() {
}

public int getRemoteTranslogExtraKeep() {
return INDEX_REMOTE_TRANSLOG_KEEP_EXTRA_GEN_SETTING.get(settings);
return remoteTranslogKeepExtraGen;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,12 @@ public void trimUnreferencedReaders() throws IOException {
}
generationsToDelete.add(generation);
}
translogTransferManager.deleteStaleTranslogMetadataFilesAsync(remoteGenerationDeletionPermits::release);
if (generationsToDelete.isEmpty() == false) {
deleteRemoteGeneration(generationsToDelete);
translogTransferManager.deleteStaleTranslogMetadataFilesAsync(remoteGenerationDeletionPermits::release);
deleteStaleRemotePrimaryTerms();
} else {
remoteGenerationDeletionPermits.release();
remoteGenerationDeletionPermits.release(REMOTE_DELETION_PERMITS);
}
}

Expand Down

0 comments on commit bc94de0

Please sign in to comment.