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

Function putParts

tests/multipleBackend/multipartUpload.js:259–271  ·  view source on GitHub ↗
(uploadId, key, cb)

Source from the content-addressed store, hash-verified

257}
258
259function putParts(uploadId, key, cb) {
260 const putPartParam1 = getPartParams(key, uploadId, 1);
261 const partRequest = new DummyRequest(putPartParam1, bigBody);
262 objectPutPart(authInfo, partRequest, undefined, log, err => {
263 assert.equal(err, null, `Error putting part: ${err}`);
264 const putPartParam2 = getPartParams(key, uploadId, 2);
265 const partRequest2 = new DummyRequest(putPartParam2, smallBody);
266 objectPutPart(authInfo, partRequest2, undefined, log, err => {
267 assert.equal(err, null, `Error putting part: ${err}`);
268 cb();
269 });
270 });
271}
272
273function mpuSetup(location, key, cb) {
274 const initiateRequest = {

Callers 1

mpuSetupFunction · 0.85

Calls 2

getPartParamsFunction · 0.85
objectPutPartFunction · 0.85

Tested by

no test coverage detected