From 914fd29e70ff66a4c11561510b7d3c4a70774a11 Mon Sep 17 00:00:00 2001 From: Andrew Ochsner Date: Fri, 8 Nov 2013 14:07:26 -0600 Subject: [PATCH] Change default store impl to mmapfs on 64bit Linux. Fixes #4134 --- .../java/org/elasticsearch/index/store/IndexStoreModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/store/IndexStoreModule.java b/src/main/java/org/elasticsearch/index/store/IndexStoreModule.java index 46b5721e943..7b213d3017d 100644 --- a/src/main/java/org/elasticsearch/index/store/IndexStoreModule.java +++ b/src/main/java/org/elasticsearch/index/store/IndexStoreModule.java @@ -48,7 +48,7 @@ public class IndexStoreModule extends AbstractModule implements SpawnModules { public Iterable spawnModules() { Class 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) {