MCPcopy
hub / github.com/scality/cloudserver / incrementBytesForBucket

Method incrementBytesForBucket

tests/utilities/mock/Scuba.js:127–134  ·  view source on GitHub ↗
(bucketName, bytes)

Source from the content-addressed store, hash-verified

125 }
126
127 incrementBytesForBucket(bucketName, bytes) {
128 if (!this._data.bucket.has(bucketName)) {
129 this._data.bucket.set(bucketName, { current: 0, nonCurrent: 0, inflight: 0 });
130 }
131 const bucket = this._data.bucket.get(bucketName);
132 bucket.current += bytes;
133 this._data.bucket.set(bucketName, bucket);
134 }
135}
136
137module.exports = {

Callers 12

routeVeeam.jsFile · 0.80
putObjectFunction · 0.80
copyObjectFunction · 0.80
deleteObjectFunction · 0.80
deleteVersionIDFunction · 0.80
objectMPUFunction · 0.80
abortMPUFunction · 0.80
uploadPartCopyFunction · 0.80
restoreObjectFunction · 0.80
multiObjectDeleteFunction · 0.80
quota.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected