mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 05:00:22 +03:00
fix: precondition check for multipart with existing object replication (#19349)
This commit is contained in:
@@ -381,7 +381,7 @@ func (er erasureObjects) newMultipartUpload(ctx context.Context, bucket string,
|
|||||||
rctx := lkctx.Context()
|
rctx := lkctx.Context()
|
||||||
obj, err := er.getObjectInfo(rctx, bucket, object, opts)
|
obj, err := er.getObjectInfo(rctx, bucket, object, opts)
|
||||||
lk.RUnlock(lkctx)
|
lk.RUnlock(lkctx)
|
||||||
if err != nil && !isErrVersionNotFound(err) {
|
if err != nil && !isErrVersionNotFound(err) && !isErrObjectNotFound(err) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if opts.CheckPrecondFn(obj) {
|
if opts.CheckPrecondFn(obj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user