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:
@@ -389,7 +389,7 @@ func (manager *SnapshotManager) CleanSnapshotCache(latestSnapshot *Snapshot, all
|
|||||||
chunks := make(map[string]bool)
|
chunks := make(map[string]bool)
|
||||||
|
|
||||||
if latestSnapshot != nil {
|
if latestSnapshot != nil {
|
||||||
for _, chunkID := range manager.GetSnapshotChunks(latestSnapshot, false) {
|
for _, chunkID := range manager.GetSnapshotChunks(latestSnapshot, true) {
|
||||||
chunks[chunkID] = true
|
chunks[chunkID] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user