Add debugging messages in incomplete snapshot handling

This commit is contained in:
Gilbert Chen
2017-12-15 08:23:56 -05:00
parent 36d7c583fa
commit f6ef9094bc

View File

@@ -242,6 +242,9 @@ func (manager *BackupManager) Backup(top string, quickMode bool, threads int, ta
} }
} }
LOG_DEBUG("CHUNK_INCOMPLETE", "The incomplete snapshot contains %d files and %d chunks", len(incompleteSnapshot.Files), len(incompleteSnapshot.ChunkHashes))
LOG_DEBUG("CHUNK_INCOMPLETE", "Last chunk in the incomplete snapshot that exist in the storage: %d", lastCompleteChunk)
// Only keep those files whose chunks exist in the cache // Only keep those files whose chunks exist in the cache
var files []*Entry var files []*Entry
for _, file := range incompleteSnapshot.Files { for _, file := range incompleteSnapshot.Files {