Skip to content

Commit

Permalink
Fix(@xen-orchestra/backups): don't change task signature
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeauchamp committed Jan 12, 2023
1 parent 78e5f58 commit 67fb146
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions @xen-orchestra/backups/writers/DeltaBackupWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ exports.DeltaBackupWriter = class DeltaBackupWriter extends MixinBackupWriter(Ab
}
}

async _transfer({ timestamp, deltaExport, sizeContainers }) {
async _transfer({ timestamp, deltaExport }) {
const adapter = this._adapter
const backup = this._backup

Expand Down Expand Up @@ -171,7 +171,7 @@ exports.DeltaBackupWriter = class DeltaBackupWriter extends MixinBackupWriter(Ab
vmSnapshot: this._backup.exportedVm,
}

const transferSize = await Task.run({ name: 'transfer' }, async () => {
const { size } = await Task.run({ name: 'transfer' }, async () => {
let transferSize = 0
await Promise.all(
map(deltaExport.vdis, async (vdi, id) => {
Expand Down Expand Up @@ -240,9 +240,9 @@ exports.DeltaBackupWriter = class DeltaBackupWriter extends MixinBackupWriter(Ab
})
})
)
return transferSize
return { size: transferSize }
})
metadataContent.size = transferSize
metadataContent.size = size
this._metadataFileName = await adapter.writeVmBackupMetadata(vm.uuid, metadataContent)

// TODO: run cleanup?
Expand Down

0 comments on commit 67fb146

Please sign in to comment.