mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05: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
|
||||
}
|
||||
}
|
||||
if isErrObjectNotFound(gerr) || isErrVersionNotFound(gerr) {
|
||||
return ErrNone
|
||||
}
|
||||
return toAPIErrorCode(ctx, gerr)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user