mirror of https://github.com/apache/lucene.git
SOLR-6519: Add back "single" lock factory type to StandardDirectoryFactory (to prevent test randomization from failing). Should be discussed in separate issue.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1625724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1866163a72
commit
6dddd1d6b2
|
@ -67,6 +67,8 @@ public class StandardDirectoryFactory extends CachingDirectoryFactory {
|
|||
return new SimpleFSLockFactory(new File(lockPath).toPath());
|
||||
case "native":
|
||||
return new NativeFSLockFactory(new File(lockPath).toPath());
|
||||
case "single":
|
||||
return new SingleInstanceLockFactory();
|
||||
case "none":
|
||||
return NoLockFactory.getNoLockFactory();
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue