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 75fcbe0 commit 6e40125Copy full SHA for 6e40125
server/src/main/java/org/elasticsearch/common/lucene/Lucene.java
@@ -241,7 +241,7 @@ public static void checkSegmentInfoIntegrity(final Directory directory) throws I
241
242
@Override
243
protected Object doBody(String segmentFileName) throws IOException {
244
- try (IndexInput input = directory.openInput(segmentFileName, IOContext.READ)) {
+ try (IndexInput input = directory.openInput(segmentFileName, IOContext.READONCE)) {
245
CodecUtil.checksumEntireFile(input);
246
}
247
return null;
0 commit comments