Skip to content

Commit

Permalink
Fix commit blocks list
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisferrand committed Dec 15, 2022
1 parent 4812db4 commit 937615e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/storage/data/external/AzureClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ class AzureClient {
completeMPU(jsonList, mdInfo, key, uploadId, bucket, metaHeaders,
contentSettings, tagging, log, callback) {
const azureKey = this._createAzureKey(bucket, key, this._bucketMatch);
const commitList = {
UncommittedBlocks: jsonList.uncommittedBlocks || [],
};
const commitList = jsonList.uncommittedBlocks || [];
let filteredPartsObj;
if (!jsonList.uncommittedBlocks) {
const { storedParts, mpuOverviewKey, splitter } = mdInfo;
Expand All @@ -392,7 +390,7 @@ class AzureClient {
// part.locations is always array of 1, which contains data info
const subPartIds =
azureMpuUtils.getSubPartIds(part.locations[0], uploadId);
commitList.UncommittedBlocks.push(...subPartIds);
commitList.push(...subPartIds);
});
}
const options = {
Expand Down

0 comments on commit 937615e

Please sign in to comment.