From 6ca8b8dff0f6216c66c82ceb5ef1b883616b7d47 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Sun, 10 May 2020 00:26:47 -0400 Subject: [PATCH] Disable snapshot cache when checking chunks Otherwise every chunk will be stored to the snapshot cache when the `-chunks` option is specified. --- src/duplicacy_snapshotmanager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index be3c635..2b0ddb9 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -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)