Skip to content

Commit 07f3b7e

Browse files
author
elasticsearchmachine
committed
lucene_snapshot: fix another instance of IOContext.READONCE
1 parent 4d319ef commit 07f3b7e

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
@@ -242,7 +242,7 @@ public static void checkSegmentInfoIntegrity(final Directory directory) throws I
242242

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

0 commit comments

Comments
 (0)