aboutsummaryrefslogtreecommitdiff
path: root/weed
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-01-18 09:24:26 -0800
committerchrislu <chris.lu@gmail.com>2024-01-18 09:24:26 -0800
commitd848efed1bc2e463ba7b8da3c003c005dc373ad4 (patch)
treecdbf52b39acd2e5fc4b056cbab88e47f0b1a5b0b /weed
parentaca3c33bab17e17e0762bf52cb563cfe01cfac47 (diff)
downloadseaweedfs-d848efed1bc2e463ba7b8da3c003c005dc373ad4.tar.xz
seaweedfs-d848efed1bc2e463ba7b8da3c003c005dc373ad4.zip
skip updating multipart .upload files
Diffstat (limited to 'weed')
-rw-r--r--weed/command/filer_remote_sync_dir.go3
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) {