aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_remote_meta_sync.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-08-30 15:56:11 -0700
committerChris Lu <chris.lu@gmail.com>2021-08-30 15:56:14 -0700
commitf117f7bf54067eb334fb6ff259b9eed2d814d5e5 (patch)
treef0b572aeadad0c7cbfaa6c44d62af3007b2dc9ea /weed/shell/command_remote_meta_sync.go
parent72d4ff6b28329fdd0fbb1652d08fe4d9167b2fe8 (diff)
downloadseaweedfs-f117f7bf54067eb334fb6ff259b9eed2d814d5e5.tar.xz
seaweedfs-f117f7bf54067eb334fb6ff259b9eed2d814d5e5.zip
adjust comment
Diffstat (limited to 'weed/shell/command_remote_meta_sync.go')
-rw-r--r--weed/shell/command_remote_meta_sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_remote_meta_sync.go b/weed/shell/command_remote_meta_sync.go
index 17b9abdb8..9005ba86f 100644
--- a/weed/shell/command_remote_meta_sync.go
+++ b/weed/shell/command_remote_meta_sync.go
@@ -76,7 +76,7 @@ func detectMountInfo(commandEnv *CommandEnv, writer io.Writer, dir string) (*rem
This function update entry.RemoteEntry if the remote has any changes.
To pull remote updates, or created for the first time, the criteria is:
- entry == nil or (entry.RemoteEntry != nil and entry.RemoteEntry.RemoteTag != remote.RemoteTag)
+ entry == nil or (entry.RemoteEntry != nil and (entry.RemoteEntry.RemoteTag != remote.RemoteTag or entry.RemoteEntry.RemoteMTime < remote.RemoteMTime ))
After the meta pull, the entry.RemoteEntry will have:
remoteEntry.LastLocalSyncTsNs == 0
Attributes.FileSize = uint64(remoteEntry.RemoteSize)