Skip to content

Commit 36bc0b9

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 28c007f commit 36bc0b9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

server/src/main/java/org/elasticsearch/index/store/FsDirectoryFactory.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import org.apache.lucene.store.FSDirectory;
1515
import org.apache.lucene.store.FileSwitchDirectory;
1616
import org.apache.lucene.store.FilterDirectory;
17-
import org.apache.lucene.store.FilterIndexInput;
1817
import org.apache.lucene.store.IOContext;
1918
import org.apache.lucene.store.IndexInput;
2019
import org.apache.lucene.store.LockFactory;
@@ -36,7 +35,6 @@
3635
import org.elasticsearch.plugins.IndexStorePlugin;
3736

3837
import java.io.IOException;
39-
import java.io.UncheckedIOException;
4038
import java.nio.file.Files;
4139
import java.nio.file.Path;
4240
import java.util.HashSet;
@@ -224,10 +222,9 @@ static boolean useDelegate(String name, IOContext ioContext) {
224222
}
225223

226224
final LuceneFilesExtensions extension = LuceneFilesExtensions.fromExtension(getExtension(name));
227-
if (extension == null
228-
|| extension.shouldMmap() == false
229-
// Force normal read advice for stored field temp fdt files:
230-
// (tmp fdt files should only exist when index sorting is enabled)
225+
if (extension == null || extension.shouldMmap() == false
226+
// Force normal read advice for stored field temp fdt files:
227+
// (tmp fdt files should only exist when index sorting is enabled)
231228
|| (LuceneFilesExtensions.TMP.getExtension().equals(getExtension(name)) && name.contains("fdt"))) {
232229
// Other files are either less performance-sensitive (e.g. stored field index, norms metadata)
233230
// or are large and have a random access pattern and mmap leads to page cache trashing

0 commit comments

Comments
 (0)