Clear the attributes from last snapshot after loading to save memory

This commit is contained in:
Gilbert Chen
2018-01-28 16:54:06 -05:00
parent ffe04d691b
commit 7230ddbef5
2 changed files with 16 additions and 14 deletions

View File

@@ -750,7 +750,7 @@ func (manager *BackupManager) Restore(top string, revision int, inPlace bool, qu
}
remoteSnapshot := manager.SnapshotManager.DownloadSnapshot(manager.snapshotID, revision)
manager.SnapshotManager.DownloadSnapshotContents(remoteSnapshot, patterns)
manager.SnapshotManager.DownloadSnapshotContents(remoteSnapshot, patterns, true)
localSnapshot, _, _, err := CreateSnapshotFromDirectory(manager.snapshotID, top)
if err != nil {