lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r1653845 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/core/ solr/core/src/java/org/apache/solr/handler/SnapPuller.java
Date Thu, 22 Jan 2015 13:13:36 GMT
Author: shalin
Date: Thu Jan 22 13:13:35 2015
New Revision: 1653845

URL: http://svn.apache.org/r1653845
Log:
SOLR-6640: Exclude lock files from unused file check

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/SnapPuller.java

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/SnapPuller.java?rev=1653845&r1=1653844&r2=1653845&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
(original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
Thu Jan 22 13:13:35 2015
@@ -584,7 +584,7 @@ public class SnapPuller {
     }
     String[] allFiles = indexDir.listAll();
     for (String file : allFiles) {
-      if (!file.equals(segmentsFileName) && !currentFiles.contains(file)) {
+      if (!file.equals(segmentsFileName) && !currentFiles.contains(file) &&
!file.endsWith(".lock")) {
         LOG.info("Found unused file: " + file);
         return true;
       }



Mime
View raw message