mirror of
https://github.com/minio/minio.git
synced 2025-04-24 12:21:02 -04:00
Ignore ObjectNotFound errors in delete api while enforcing locking (#11114)
AWS does not report this or version not found as errors in the response.
This commit is contained in:
parent
f6fb27e8f0
commit
3456b03b12
@ -97,6 +97,9 @@ func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucke
|
|||||||
return ErrNone
|
return ErrNone
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if isErrObjectNotFound(gerr) || isErrVersionNotFound(gerr) {
|
||||||
|
return ErrNone
|
||||||
|
}
|
||||||
return toAPIErrorCode(ctx, gerr)
|
return toAPIErrorCode(ctx, gerr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user