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 d056dfb commit eddbcf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions @xen-orchestra/backups/writers/DeltaBackupWriter.js
Original file line number Diff line number Diff line change
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 @@ -236,9 +236,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 eddbcf8

Please sign in to comment.