Change default store impl to mmapfs on 64bit Linux.

Fixes #4134
This commit is contained in:
Andrew Ochsner 2013-11-08 14:07:26 -06:00 committed by Lee Hinman
parent b17732ea56
commit 914fd29e70
1 changed files with 1 additions and 1 deletions

View File

@ -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) {