From 6dddd1d6b2dd8ea1d283183d6037f4cfc86be89d Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 17 Sep 2014 18:29:22 +0000 Subject: [PATCH] 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 --- .../src/java/org/apache/solr/core/StandardDirectoryFactory.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java b/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java index aedb8d4b0bb..50da52c513d 100644 --- a/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java +++ b/solr/core/src/java/org/apache/solr/core/StandardDirectoryFactory.java @@ -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: