Bläddra i källkod

Change default store impl to mmapfs on 64bit Linux.
Fixes #4134

Andrew Ochsner 12 år sedan
förälder
incheckning
914fd29e70
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/main/java/org/elasticsearch/index/store/IndexStoreModule.java

+ 1 - 1
src/main/java/org/elasticsearch/index/store/IndexStoreModule.java

@@ -48,7 +48,7 @@ public class IndexStoreModule extends AbstractModule implements SpawnModules {
     public Iterable<? extends Module> spawnModules() {
         Class<? extends Module> indexStoreModule = NioFsIndexStoreModule.class;
         // Same logic as FSDirectory#open ...
-        if ((Constants.WINDOWS || Constants.SUN_OS)
+        if ((Constants.WINDOWS || Constants.SUN_OS || Constants.LINUX)
                 && Constants.JRE_IS_64BIT && MMapDirectory.UNMAP_SUPPORTED) {
             indexStoreModule = MmapFsIndexStoreModule.class;
         } else if (Constants.WINDOWS) {