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 @@ -181,6 +181,13 @@ public IndexInput openInput(String name, IOContext context) throws IOException {
// we might run into trouble with files that are pendingDelete in one directory but still
// listed in listAll() from the other. We on the other hand don't want to list files from both dirs
// and intersect for perf reasons.

// Force normal read advice for stored field temp fdt files:
// (tmp fdt files should only exist when index sorting is enabled)
if (LuceneFilesExtensions.TMP.getExtension().equals(getExtension(name)) && name.contains("fdt")) {
context = context.withReadAdvice(ReadAdvice.NORMAL);
}

return delegate.openInput(name, context);
} else {
return super.openInput(name, context);
Expand Down