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:
Shalin Shekhar Mangar 2015-01-22 13:12:45 +00:00
parent b323ce6bae
commit b2249d1069
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}