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:
Uwe Schindler 2014-09-17 18:36:11 +00:00
parent 6dddd1d6b2
commit 7978fccfb0
1 changed files with 2 additions and 0 deletions

View File

@ -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: