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 16, 2022
1 parent a4f4c51 commit 7910792
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 7910792

Please sign in to comment.