mirror of https://github.com/apache/lucene.git
SOLR-1399. Lock settings are ignored
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@810788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
28e3e20f29
commit
f34f5ef987
|
@ -385,7 +385,7 @@ public final class SolrCore implements SolrInfoMBean {
|
|||
log.warn(logid+"Solr index directory '" + dirFile + "' doesn't exist."
|
||||
+ " Creating new index...");
|
||||
|
||||
SolrIndexWriter writer = new SolrIndexWriter("SolrCore.initIndex", getIndexDir(), getDirectoryFactory(), true, schema, solrConfig.mainIndexConfig);
|
||||
SolrIndexWriter writer = new SolrIndexWriter("SolrCore.initIndex", getIndexDir(), getDirectoryFactory(), true, schema, solrConfig.mainIndexConfig, solrDelPolicy);
|
||||
writer.close();
|
||||
}
|
||||
|
||||
|
|
|
@ -153,9 +153,7 @@ public class SolrIndexWriter extends IndexWriter {
|
|||
init(name, schema, null);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Deprecated
|
||||
public SolrIndexWriter(String name, String path, DirectoryFactory dirFactory, boolean create, IndexSchema schema, SolrIndexConfig config) throws IOException {
|
||||
super(getDirectory(path, dirFactory, null), config.luceneAutoCommit, schema.getAnalyzer(), create);
|
||||
init(name, schema, config);
|
||||
|
|
Loading…
Reference in New Issue