Skip to content

Commit b0325ce

Browse files
committed
Only use direct IO in searches
1 parent 446caf8 commit b0325ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/codec/vectors/es818/ES818FlatVectorsReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static IndexInput openDataInput(
119119
IOContext context
120120
) throws IOException {
121121
String fileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, fileExtension);
122-
IndexInput in = state.directory instanceof DirectIOIndexInputSupplier did
122+
IndexInput in = context.context() == IOContext.Context.DEFAULT && state.directory instanceof DirectIOIndexInputSupplier did
123123
? did.openInputDirect(fileName, context)
124124
: state.directory.openInput(fileName, context);
125125
boolean success = false;

0 commit comments

Comments
 (0)