Skip to content

Commit

Permalink
Update comment nit-pick
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Aug 1, 2023
1 parent 330e712 commit 0ac181a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,7 @@ public void syncSegmentsFromRemoteSegmentStore(boolean overrideLocal, boolean re
long processedLocalCheckpoint = Long.parseLong(infosSnapshot.getUserData().get(LOCAL_CHECKPOINT_KEY));
store.commitSegmentInfos(infosSnapshot, processedLocalCheckpoint, processedLocalCheckpoint);
Collection<String> currentInfoFiles = infosSnapshot.files(true);
// For recovering shards, clean up un-usable incremental refresh files.
// For recovering shards, clean up un-usable incremental refresh files and commit points.
if (state() != IndexShardState.STARTED) {
for (String localFile : storeDirectory.listAll()) {
if (Store.isAutogenerated(localFile) == false && currentInfoFiles.contains(localFile) == false) {
Expand Down

0 comments on commit 0ac181a

Please sign in to comment.