diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-04 18:46:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-04 18:46:28 -0700 |
| commit | 98c68d7a7926ed826714607aaf3d461ebb68d54c (patch) | |
| tree | 3500b316d1388012b7848d6b21d18f26907b418a | |
| parent | d983aa4c7dc4a8f6dc7d783d69669b74df41a749 (diff) | |
| download | seaweedfs-98c68d7a7926ed826714607aaf3d461ebb68d54c.tar.xz seaweedfs-98c68d7a7926ed826714607aaf3d461ebb68d54c.zip | |
filer.remote.sync fix upload logic
| -rw-r--r-- | weed/command/filer_remote_sync_dir.go | 2 |
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 |
