aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_remote_sync.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-14 21:46:34 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-14 21:46:34 -0700
commitc34747c79d99d8a08bea31b7339b17dca6fad44d (patch)
treec4c119eef25e06e778eff894ec258e607a0774b4 /weed/command/filer_remote_sync.go
parentcb53802752919fd91342927b401f8f66652c79ec (diff)
downloadseaweedfs-c34747c79d99d8a08bea31b7339b17dca6fad44d.tar.xz
seaweedfs-c34747c79d99d8a08bea31b7339b17dca6fad44d.zip
rename, fix wrong logic.
Diffstat (limited to 'weed/command/filer_remote_sync.go')
-rw-r--r--weed/command/filer_remote_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_remote_sync.go b/weed/command/filer_remote_sync.go
index b7e90b3e7..8b20957e4 100644
--- a/weed/command/filer_remote_sync.go
+++ b/weed/command/filer_remote_sync.go
@@ -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