mirror of https://github.com/apache/lucene.git
SOLR-6640: Exclude lock files from unused file check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1653844 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b323ce6bae
commit
b2249d1069
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue