mirror of https://github.com/apache/lucene.git
SOLR-6920, SOLR-6640: Rename method to filesToAlwaysDownloadIfNoChecksums.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1658129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f0e9183c29
commit
908da87486
|
@ -805,7 +805,7 @@ public class SnapPuller {
|
||||||
long size = (Long) file.get(SIZE);
|
long size = (Long) file.get(SIZE);
|
||||||
CompareResult compareResult = compareFile(indexDir, filename, size, (Long) file.get(CHECKSUM));
|
CompareResult compareResult = compareFile(indexDir, filename, size, (Long) file.get(CHECKSUM));
|
||||||
if (!compareResult.equal || downloadCompleteIndex
|
if (!compareResult.equal || downloadCompleteIndex
|
||||||
|| filesToAlwaysDownloadIfChecksumFails(filename, size, compareResult)) {
|
|| filesToAlwaysDownloadIfNoChecksums(filename, size, compareResult)) {
|
||||||
dirFileFetcher = new DirectoryFileFetcher(tmpIndexDir, file,
|
dirFileFetcher = new DirectoryFileFetcher(tmpIndexDir, file,
|
||||||
(String) file.get(NAME), false, latestGeneration);
|
(String) file.get(NAME), false, latestGeneration);
|
||||||
currentFile = file;
|
currentFile = file;
|
||||||
|
@ -818,7 +818,7 @@ public class SnapPuller {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean filesToAlwaysDownloadIfChecksumFails(String filename,
|
private boolean filesToAlwaysDownloadIfNoChecksums(String filename,
|
||||||
long size, CompareResult compareResult) {
|
long size, CompareResult compareResult) {
|
||||||
// without checksums to compare, we always download .si, .liv, segments_N,
|
// without checksums to compare, we always download .si, .liv, segments_N,
|
||||||
// and any file under 100kb
|
// and any file under 100kb
|
||||||
|
|
Loading…
Reference in New Issue