Skip to content

Commit

Permalink
fix: precondition check for multipart with existing object replication (
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas committed Mar 26, 2024
1 parent 0a56dbd commit 8bce123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/erasure-multipart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8bce123

Please sign in to comment.