fix(vhd-lib/VhdDirectory#mergeBlock): fix rename condition

Introduced by fd752fee8
This commit is contained in:
Florent Beauchamp 2022-08-12 16:18:25 +02:00 committed by Julien Fontanet
parent 512b96af24
commit 61691ac46b
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@
- @xen-orchestra/backups patch
- @xen-orchestra/fs major
- vhd-lib major
- xo-vmdk-to-vhd patch
- xo-server minor
- xo-web patch

View File

@ -251,7 +251,7 @@ exports.VhdDirectory = class VhdDirectory extends VhdAbstract {
async mergeBlock(child, blockId, isResumingMerge = false) {
const childBlockPath = child._getFullBlockPath?.(blockId)
if (
childBlockPath !== undefined ||
childBlockPath === undefined ||
this._handler !== child._handler ||
child.compressionType !== this.compressionType ||
child.compressionType === 'MIXED'