From 98c68d7a7926ed826714607aaf3d461ebb68d54c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 4 Sep 2021 18:46:28 -0700 Subject: [PATCH] filer.remote.sync fix upload logic --- weed/command/filer_remote_sync_dir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go index 2d18a9ab7..dc2e9a1fb 100644 --- a/weed/command/filer_remote_sync_dir.go +++ b/weed/command/filer_remote_sync_dir.go @@ -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