rename, fix wrong logic.

This commit is contained in:
Chris Lu committed 2021-08-14 21:46:34 -07:00
1 parent cb53802752
commit c34747c79d
8 files changed
+560 -549

No files matched your search

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