fix(backup): transferred backup size for incremental backup
This commit is contained in:
committed by
Julien Fontanet
parent
2634008a6a
commit
7f8ab07692
@@ -205,13 +205,17 @@ export class IncrementalRemoteWriter extends MixinRemoteWriter(AbstractIncrement
|
|||||||
await checkVhd(handler, parentPath)
|
await checkVhd(handler, parentPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
transferSize += await adapter.writeVhd(path, deltaExport.streams[`${id}.vhd`], {
|
// don't write it as transferSize += await async function
|
||||||
|
// since i += await asyncFun lead to race condition
|
||||||
|
// as explained : https://eslint.org/docs/latest/rules/require-atomic-updates
|
||||||
|
const transferSizeOneDisk = await adapter.writeVhd(path, deltaExport.streams[`${id}.vhd`], {
|
||||||
// no checksum for VHDs, because they will be invalidated by
|
// no checksum for VHDs, because they will be invalidated by
|
||||||
// merges and chainings
|
// merges and chainings
|
||||||
checksum: false,
|
checksum: false,
|
||||||
validator: tmpPath => checkVhd(handler, tmpPath),
|
validator: tmpPath => checkVhd(handler, tmpPath),
|
||||||
writeBlockConcurrency: this._config.writeBlockConcurrency,
|
writeBlockConcurrency: this._config.writeBlockConcurrency,
|
||||||
})
|
})
|
||||||
|
transferSize += transferSizeOneDisk
|
||||||
|
|
||||||
if (isDelta) {
|
if (isDelta) {
|
||||||
await chainVhd(handler, parentPath, handler, path)
|
await chainVhd(handler, parentPath, handler, path)
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
<!--packages-start-->
|
<!--packages-start-->
|
||||||
|
|
||||||
- @vates/nbd-client major
|
- @vates/nbd-client major
|
||||||
|
- @xen-orchestra/backups patch
|
||||||
- @xen-orchestra/xapi minor
|
- @xen-orchestra/xapi minor
|
||||||
- vhd-lib patch
|
- vhd-lib patch
|
||||||
- xo-server minor
|
- xo-server minor
|
||||||
|
|||||||
Reference in New Issue
Block a user