diff options
| author | chrislu <chris.lu@gmail.com> | 2024-01-18 09:24:26 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-01-18 09:24:52 -0800 |
| commit | bb867694d8bd62b3935f73b92d082d632e9a126c (patch) | |
| tree | 2bd8ed6541152b8ef053b195b5a6bffd369fc62b /weed/command/filer_remote_sync_dir.go | |
| parent | 4ca6b1be3c96b2b135de03527f52d4eb2dd5e121 (diff) | |
| download | seaweedfs-bb867694d8bd62b3935f73b92d082d632e9a126c.tar.xz seaweedfs-bb867694d8bd62b3935f73b92d082d632e9a126c.zip | |
skip updating multipart .upload files
Diffstat (limited to 'weed/command/filer_remote_sync_dir.go')
| -rw-r--r-- | weed/command/filer_remote_sync_dir.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/filer_remote_sync_dir.go b/weed/command/filer_remote_sync_dir.go index b79c0e4fc..76f7e46d5 100644 --- a/weed/command/filer_remote_sync_dir.go +++ b/weed/command/filer_remote_sync_dir.go @@ -165,6 +165,9 @@ func (option *RemoteSyncOptions) makeEventProcessor(remoteStorage *remote_pb.Rem return client.DeleteFile(dest) } if message.OldEntry != nil && message.NewEntry != nil { + if isMultipartUploadFile(message.NewParentPath, message.NewEntry.Name) { + return nil + } oldDest := toRemoteStorageLocation(util.FullPath(mountedDir), util.NewFullPath(resp.Directory, message.OldEntry.Name), remoteStorageMountLocation) dest := toRemoteStorageLocation(util.FullPath(mountedDir), util.NewFullPath(message.NewParentPath, message.NewEntry.Name), remoteStorageMountLocation) if !shouldSendToRemote(message.NewEntry) { |
