From 8bce123bba10a3880deb490bab219d5807da725a Mon Sep 17 00:00:00 2001 From: Poorna Date: Tue, 26 Mar 2024 15:10:45 -0700 Subject: [PATCH] fix: precondition check for multipart with existing object replication (#19349) --- cmd/erasure-multipart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure-multipart.go b/cmd/erasure-multipart.go index 38ed33686..604004561 100644 --- a/cmd/erasure-multipart.go +++ b/cmd/erasure-multipart.go @@ -381,7 +381,7 @@ func (er erasureObjects) newMultipartUpload(ctx context.Context, bucket string, rctx := lkctx.Context() obj, err := er.getObjectInfo(rctx, bucket, object, opts) lk.RUnlock(lkctx) - if err != nil && !isErrVersionNotFound(err) { + if err != nil && !isErrVersionNotFound(err) && !isErrObjectNotFound(err) { return nil, err } if opts.CheckPrecondFn(obj) {