1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Disable snapshot cache when checking chunks

Otherwise every chunk will be stored to the snapshot cache when the `-chunks`
option is specified.
This commit is contained in:
Gilbert Chen
2020-05-10 00:26:47 -04:00
parent 51cbf73caa
commit 6ca8b8dff0

View File

@@ -998,6 +998,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
}
if checkChunks && !checkFiles {
manager.chunkDownloader.snapshotCache = nil
LOG_INFO("SNAPSHOT_VERIFY", "Verifying %d chunks", len(*allChunkHashes))
for chunkHash := range *allChunkHashes {
manager.chunkDownloader.AddChunk(chunkHash)