b2: Enable mod time syncing - fixes #348

This commit is contained in:
Nick Craig-Wood
2016-03-22 15:23:37 +00:00
parent 414b35ea56
commit cb22583212
5 changed files with 19 additions and 14 deletions

View File

@@ -146,7 +146,10 @@ func Equal(src, dst Object) bool {
// Size and hash the same but mtime different so update the
// mtime of the dst object here
err := dst.SetModTime(srcModTime)
if err != nil {
if err == ErrorCantSetModTime {
Debug(src, "src and dst identical but can't set mod time without re-uploading")
return false
} else if err != nil {
Stats.Error()
ErrorLog(dst, "Failed to read set modification time: %s", err)
}