In fixed-size chunking, create a new chunk after returning the old one

This commit is contained in:
Gilbert Chen
2017-06-29 13:11:28 -04:00
parent d27335ad8d
commit 42a6ab9140
3 changed files with 20 additions and 2 deletions

View File

@@ -1132,7 +1132,7 @@ func (manager *BackupManager) RestoreFile(chunkDownloader *ChunkDownloader, chun
fileHash = hash
return nil, false
})
if fileHash == entry.Hash {
if fileHash == entry.Hash && fileHash != "" {
LOG_TRACE("DOWNLOAD_SKIP", "File %s unchanged (by hash)", entry.Path)
return false
}