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:
Uwe Schindler 2014-09-17 18:29:22 +00:00
parent 1866163a72
commit 6dddd1d6b2
1 changed files with 2 additions and 0 deletions

View File

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