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

Preserve the list of chunk hashes for the latest snapshot when cleaning local snapshot cache

This commit is contained in:
Gilbert Chen
2018-03-27 23:34:40 -04:00
parent b99f4bffec
commit 5d2242d39d

View File

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