mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Add docs for bucket quota feature (#9503)
This PR also adds a check to not enforce bucket quota for server-side metadata copy of an object onto itself.
This commit is contained in:
@@ -879,9 +879,11 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re
|
||||
}
|
||||
length = actualSize
|
||||
}
|
||||
if err := enforceBucketQuota(ctx, dstBucket, actualSize); err != nil {
|
||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL, guessIsBrowserReq(r))
|
||||
return
|
||||
if !cpSrcDstSame {
|
||||
if err := enforceBucketQuota(ctx, dstBucket, actualSize); err != nil {
|
||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL, guessIsBrowserReq(r))
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var compressMetadata map[string]string
|
||||
|
||||
Reference in New Issue
Block a user