Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ protected boolean useDirectIO(String name, IOContext context, OptionalLong fileL

@Override
public IndexInput openInput(String name, IOContext context) throws IOException {
// Force direct I/O for stored field temp fdt files, given that these are used once and then removed:
// (tmp fdt files should only exist when index sorting is enabled)
if (directIODelegate != null && LuceneFilesExtensions.TMP.getExtension().equals(getExtension(name)) && name.contains("fdt")) {
return openInputDirect(name, context);
}

if (useDelegate(name, context)) {
// we need to do these checks on the outer directory since the inner doesn't know about pending deletes
ensureOpen();
Expand Down