(parts, objectKey, uploadId, storageLocation)
| 209 | } |
| 210 | |
| 211 | function 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 | |
| 232 | function generateMpuAggregateInfo(parts) { |
| 233 | let aggregateSize; |
no outgoing calls
no test coverage detected