mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
skip updating multipart .upload files
This commit is contained in:
parent
aca3c33bab
commit
d848efed1b
|
@ -165,6 +165,9 @@ func (option *RemoteSyncOptions) makeEventProcessor(remoteStorage *remote_pb.Rem
|
||||||
return client.DeleteFile(dest)
|
return client.DeleteFile(dest)
|
||||||
}
|
}
|
||||||
if message.OldEntry != nil && message.NewEntry != nil {
|
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)
|
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)
|
dest := toRemoteStorageLocation(util.FullPath(mountedDir), util.NewFullPath(message.NewParentPath, message.NewEntry.Name), remoteStorageMountLocation)
|
||||||
if !shouldSendToRemote(message.NewEntry) {
|
if !shouldSendToRemote(message.NewEntry) {
|
||||||
|
|
Loading…
Reference in a new issue