We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d319ef commit 07f3b7eCopy full SHA for 07f3b7e
server/src/main/java/org/elasticsearch/common/lucene/Lucene.java
@@ -242,7 +242,7 @@ public static void checkSegmentInfoIntegrity(final Directory directory) throws I
242
243
@Override
244
protected Object doBody(String segmentFileName) throws IOException {
245
- try (IndexInput input = directory.openInput(segmentFileName, IOContext.READ)) {
+ try (IndexInput input = directory.openInput(segmentFileName, IOContext.READONCE)) {
246
CodecUtil.checksumEntireFile(input);
247
}
248
return null;
0 commit comments