]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationSrcNBDStorageCopyReady: Use ready-state of mirror from qemuBlockJobData
authorPeter Krempa <pkrempa@redhat.com>
Mon, 11 Jan 2021 09:40:43 +0000 (10:40 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 11 Jan 2021 17:32:59 +0000 (18:32 +0100)
commita09c421e3e5969582ed0a5cf9a132ecbfd9794d2
tree20d60170db458c05cd09c7414a86ab8cbe89fdf9
parentd855f129451895caa6a39313b660bd726414d88c
qemuMigrationSrcNBDStorageCopyReady: Use ready-state of mirror from qemuBlockJobData

Use the per-job state to determine when the non-shared-storage mirror is
complete rather than the per-disk definition one. The qemuBlockJobData
is a newer approach and is always cleared after the blockjob is
terminated while the 'mirrorState' variable in the definition of the
disk may be left over. In such case the disk mirror would be considered
complete prematurely.

https://bugzilla.redhat.com/show_bug.cgi?id=1889131

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c