mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
qemuBackupBegin: Fix monitor access when rolling back due to failure
The code attempting to clean up after a failed pull mode backup job
wrongly entered monitor but didn't clean up nor exit monitor due to a
logic bug. Fix the condition.
Introduced in a1521f84a5
https://bugzilla.redhat.com/show_bug.cgi?id=1817327
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
e05dd1abdc
commit
e060b0624d
@ -894,7 +894,7 @@ qemuBackupBegin(virDomainObjPtr vm,
|
||||
qemuCheckpointRollbackMetadata(vm, chk);
|
||||
|
||||
if (!job_started && nbd_running &&
|
||||
qemuDomainObjEnterMonitorAsync(priv->driver, vm, QEMU_ASYNC_JOB_BACKUP) < 0) {
|
||||
qemuDomainObjEnterMonitorAsync(priv->driver, vm, QEMU_ASYNC_JOB_BACKUP) == 0) {
|
||||
ignore_value(qemuMonitorNBDServerStop(priv->mon));
|
||||
ignore_value(qemuDomainObjExitMonitor(priv->driver, vm));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user