Skip to content

Commit

Permalink
Don't throw an error on 0-byte chunk files with suffix '.tmp'.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Jul 8, 2020
1 parent 8b489f0 commit 1eb1fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duplicacy_snapshotmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ func (manager *SnapshotManager) CheckSnapshots(snapshotID string, revisionsToChe
chunk = strings.Replace(chunk, "/", "", -1)
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)
emptyChunks++
}
Expand Down

1 comment on commit 1eb1fb1

@gilbertchen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/cli-release-2-6-1-is-now-available/3923/1

Please sign in to comment.