ensure no writes to remote storage if content is not changed

This commit is contained in:
Chris Lu committed 2021-08-15 20:23:41 -07:00
1 parent 5a7c40510f
commit 72eb6d5b9d
2 files changed
+7 -4

No files matched your search

-1
View File
@@ -176,7 +176,6 @@ func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *sour
if resp.Directory == message.NewParentPath && message.OldEntry.Name == message.NewEntry.Name {
if filer.IsSameData(message.OldEntry, message.NewEntry) {
glog.V(2).Infof("update meta: %+v", resp)
glog.V(0).Infof("delete %s", remote_storage.FormatLocation(dest))
return client.UpdateFileMetadata(dest, message.OldEntry, message.NewEntry)
}
}