mirror of https://github.com/apache/lucene.git
SOLR-6519: Also allow "single" for HDFS
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1625731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6dddd1d6b2
commit
7978fccfb0
|
@ -117,6 +117,8 @@ public class HdfsDirectoryFactory extends CachingDirectoryFactory {
|
|||
switch (lockType) {
|
||||
case "hdfs":
|
||||
return new HdfsLockFactory(new Path(lockPath), getConf());
|
||||
case "single":
|
||||
return new SingleInstanceLockFactory();
|
||||
case "none":
|
||||
return NoLockFactory.getNoLockFactory();
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue