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

Function getPartList

lib/routes/routeBackbeat.js:211–230  ·  view source on GitHub ↗
(parts, objectKey, uploadId, storageLocation)

Source from the content-addressed store, hash-verified

209}
210
211function getPartList(parts, objectKey, uploadId, storageLocation) {
212 const partList = {};
213 if (locationConstraints[storageLocation].type === 'azure') {
214 partList.uncommittedBlocks = [];
215 parts.forEach(part => {
216 const location = {
217 key: objectKey,
218 partNumber: part.PartNumber[0],
219 dataStoreETag: part.ETag[0],
220 numberSubParts: part.NumberSubParts[0],
221 };
222 const subPartIds = getSubPartIds(location, uploadId);
223 partList.uncommittedBlocks.push(...subPartIds);
224 });
225 } else {
226 partList.Part = parts;
227 }
228
229 return partList;
230}
231
232function generateMpuAggregateInfo(parts) {
233 let aggregateSize;

Callers 1

completeMultipartUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected