mirror of
https://github.com/minio/minio.git
synced 2025-03-29 08:43:40 -04:00
fix: precondition check for multipart with existing object replication (#19349)
This commit is contained in:
parent
0a56dbde2f
commit
8bce123bba
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user