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:
Mark Robert Miller 2012-12-16 06:14:58 +00:00
parent 247858615d
commit d26d4e05d3
1 changed files with 1 additions and 1 deletions

View File

@ -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) {