convert index.store.fs.fs_lock

This commit is contained in:
Simon Willnauer 2016-01-18 10:17:11 +01:00
parent 13e5547537
commit a61723b538
6 changed files with 27 additions and 23 deletions

View file

@ -40,6 +40,6 @@ public class SmbMmapFsDirectoryService extends FsDirectoryService {
@Override
protected Directory newFSDirectory(Path location, LockFactory lockFactory) throws IOException {
logger.debug("wrapping MMapDirectory for SMB");
return new SmbDirectoryWrapper(new MMapDirectory(location, buildLockFactory(indexSettings)));
return new SmbDirectoryWrapper(new MMapDirectory(location, indexSettings.getValue(INDEX_LOCK_FACTOR_SETTING)));
}
}