Skip to content

Commit 320747b

Browse files
committed
No point in double-checking the repo data if readonly, we read it from source every time
1 parent 24c2b6a commit 320747b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3574,7 +3574,7 @@ public void verifyMetadataIntegrity(
35743574
try (var metadataVerifier = new MetadataVerifier(this, request, repositoryData, isCancelledSupplier, l2)) {
35753575
metadataVerifier.run();
35763576
}
3577-
}), () -> getRepositoryData(repositoryData.getGenId())));
3577+
}), () -> readOnly ? repositoryData : getRepositoryData(repositoryData.getGenId())));
35783578
}));
35793579
}
35803580

0 commit comments

Comments
 (0)