Skip to content

Commit 6e40125

Browse files
author
elasticsearchmachine
committed
lucene_snapshot: fix another instance of IOContext.READONCE
1 parent 75fcbe0 commit 6e40125

File tree

1 file changed

+1
-1
lines changed
  • server/src/main/java/org/elasticsearch/common/lucene

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/common/lucene/Lucene.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public static void checkSegmentInfoIntegrity(final Directory directory) throws I
241241

242242
@Override
243243
protected Object doBody(String segmentFileName) throws IOException {
244-
try (IndexInput input = directory.openInput(segmentFileName, IOContext.READ)) {
244+
try (IndexInput input = directory.openInput(segmentFileName, IOContext.READONCE)) {
245245
CodecUtil.checksumEntireFile(input);
246246
}
247247
return null;

0 commit comments

Comments
 (0)