From 5d2242d39d7b709b7a5d1e286c326b0f2d6143ca Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Tue, 27 Mar 2018 23:34:40 -0400 Subject: [PATCH] Preserve the list of chunk hashes for the latest snapshot when cleaning local snapshot cache --- src/duplicacy_snapshotmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshotmanager.go b/src/duplicacy_snapshotmanager.go index 43a1cc5..289237d 100644 --- a/src/duplicacy_snapshotmanager.go +++ b/src/duplicacy_snapshotmanager.go @@ -389,7 +389,7 @@ func (manager *SnapshotManager) CleanSnapshotCache(latestSnapshot *Snapshot, all chunks := make(map[string]bool) if latestSnapshot != nil { - for _, chunkID := range manager.GetSnapshotChunks(latestSnapshot, false) { + for _, chunkID := range manager.GetSnapshotChunks(latestSnapshot, true) { chunks[chunkID] = true } }