mirror of https://github.com/apache/lucene.git
SOLR-4203: don't clear the tlog when using ephemeral directory on core reload
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
247858615d
commit
d26d4e05d3
|
@ -118,7 +118,7 @@ public abstract class UpdateHandler implements SolrInfoMBean {
|
|||
idFieldType = idField!=null ? idField.getType() : null;
|
||||
parseEventListeners();
|
||||
initLog();
|
||||
if (!core.getDirectoryFactory().isPersistent()) {
|
||||
if (!core.isReloaded() && !core.getDirectoryFactory().isPersistent()) {
|
||||
try {
|
||||
clearLog();
|
||||
} catch (IOException e) {
|
||||
|
|
Loading…
Reference in New Issue