aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-04 18:46:28 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-04 18:46:28 -0700
commit98c68d7a7926ed826714607aaf3d461ebb68d54c (patch)
tree3500b316d1388012b7848d6b21d18f26907b418a
parentd983aa4c7dc4a8f6dc7d783d69669b74df41a749 (diff)
downloadseaweedfs-98c68d7a7926ed826714607aaf3d461ebb68d54c.tar.xz
seaweedfs-98c68d7a7926ed826714607aaf3d461ebb68d54c.zip
filer.remote.sync fix upload logic
-rw-r--r--weed/command/filer_remote_sync_dir.go2
1 files changed, 1 insertions, 1 deletions
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