filer.remote.sync fix upload logic

This commit is contained in:
Chris Lu 2021-09-04 18:46:28 -07:00
parent d983aa4c7d
commit 98c68d7a79

View file

@ -202,7 +202,7 @@ func shouldSendToRemote(entry *filer_pb.Entry) bool {
if entry.RemoteEntry == nil {
return true
}
if entry.RemoteEntry.LastLocalSyncTsNs/1e9 < entry.Attributes.Mtime {
if entry.RemoteEntry.RemoteMtime < entry.Attributes.Mtime {
return true
}
return false