qemu: backup: Properly delete temporary bitmap after push-mode incremental backup

Refactor in 0316c28a45 used incorrect source variable to initialize
the variable which holds the name of the bitmap which needs to be
deleted after the backup job finishes. This resulted into deleting the
source bitmap of the backup rather than the temporary one.

Use 'dd->incrementalBitmap' which holds the temporary bitmap name
instead of 'dd->backupdisk->incremental' which holds the name of the
source bitmap which is used by the backup.

Fixes: 0316c28a45
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1908647
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-01-05 15:43:21 +01:00
parent 781bc9201b
commit 6ac2327060

View File

@ -235,7 +235,7 @@ qemuBackupDiskPrepareOneBitmaps(struct qemuBackupDiskData *dd,
blockNamedNodeData) < 0)
return -1;
dd->domdiskIncrementalBitmap = dd->backupdisk->incremental;
dd->domdiskIncrementalBitmap = dd->incrementalBitmap;
}
return 0;