MCPcopy Index your code
hub / github.com/scality/cloudserver / needQuotaCheck

Function needQuotaCheck

lib/metadata/metadataUtils.js:424–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 },
423 (bucket, objMD, raftSessionId, next) => {
424 const needQuotaCheck = requestType => requestType.some(type => actionNeedQuotaCheck[type] ||
425 actionWithDataDeletion[type]);
426 const checkQuota = params.checkQuota === undefined ? needQuotaCheck(requestType) : params.checkQuota;
427 // withVersionId cover cases when an object is being restored with a specific version ID.
428 // In this case, the storage space was already accounted for when the RestoreObject API call

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected