Add keepChunkHashes flag to GetSnapshotChunks, allowing reduced memory

This commit is contained in:
Peter Fern
2018-01-20 08:25:35 +11:00
parent 91f02768f9
commit bd5a689b7d
4 changed files with 23 additions and 13 deletions

View File

@@ -199,7 +199,7 @@ func (manager *BackupManager) Backup(top string, quickMode bool, threads int, ta
// A revision number of 0 means this is the initial backup
if remoteSnapshot.Revision > 0 {
// Add all chunks in the last snapshot to the cache
for _, chunkID := range manager.SnapshotManager.GetSnapshotChunks(remoteSnapshot) {
for _, chunkID := range manager.SnapshotManager.GetSnapshotChunks(remoteSnapshot, true) {
chunkCache[chunkID] = true
}
} else {