Browse Source

filer.remote.sync fix upload logic

pull/2321/head
Chris Lu 3 years ago
parent
commit
98c68d7a79
  1. 2
      weed/command/filer_remote_sync_dir.go

2
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

Loading…
Cancel
Save