Skip to content

Commit e1995d7

Browse files
committed
Remove other repository name check
1 parent c799368 commit e1995d7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/MetadataDeleteIndexService.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,6 @@ private static Map<String, Set<SnapshotId>> listOfSnapshotsToDelete(final Cluste
207207
if (Objects.equals(snapshotUuid, otherSnapshotUuid) == false) {
208208
continue; // other index is backed by a different snapshot, skip
209209
}
210-
final String otherRepositoryName = repositoryNameFromIndexSettings(currentState, otherSettings);
211-
if (Objects.equals(repositoryName, otherRepositoryName) == false) {
212-
continue; // other index is backed by a snapshot from a different repository, skip
213-
}
214210
assert otherSettings.getAsBoolean(SEARCHABLE_SNAPSHOTS_DELETE_SNAPSHOT_ON_INDEX_DELETION, false) : other;
215211
canDeleteSnapshot = false; // another index is using the same snapshot, do not delete
216212
break;

0 commit comments

Comments
 (0)