mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-15 15:53:26 +00:00
Don't throw an error on 0-byte chunk files with suffix '.tmp'.
This commit is contained in:
@@ -845,7 +845,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
|
|||||||
chunk = strings.Replace(chunk, "/", "", -1)
|
chunk = strings.Replace(chunk, "/", "", -1)
|
||||||
chunkSizeMap[chunk] = allSizes[i]
|
chunkSizeMap[chunk] = allSizes[i]
|
||||||
|
|
||||||
if allSizes[i] == 0 {
|
if allSizes[i] == 0 && !strings.HasSuffix(chunk, ".tmp") {
|
||||||
LOG_WARN("SNAPSHOT_CHECK", "Chunk %s has a size of 0", chunk)
|
LOG_WARN("SNAPSHOT_CHECK", "Chunk %s has a size of 0", chunk)
|
||||||
emptyChunks++
|
emptyChunks++
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user