diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-30 15:56:11 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-30 15:56:14 -0700 |
| commit | f117f7bf54067eb334fb6ff259b9eed2d814d5e5 (patch) | |
| tree | f0b572aeadad0c7cbfaa6c44d62af3007b2dc9ea /weed/shell/command_remote_meta_sync.go | |
| parent | 72d4ff6b28329fdd0fbb1652d08fe4d9167b2fe8 (diff) | |
| download | seaweedfs-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.go | 2 |
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) |
