mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: Don't overwrite existing error in qemuMigrationReset
https://bugzilla.redhat.com/show_bug.cgi?id=1439130 Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
8be3ccd047
commit
45b639bdba
@ -5871,15 +5871,22 @@ qemuMigrationReset(virQEMUDriverPtr driver,
|
||||
qemuDomainAsyncJob job)
|
||||
{
|
||||
qemuMonitorMigrationCaps cap;
|
||||
virErrorPtr err = virSaveLastError();
|
||||
|
||||
if (!virDomainObjIsActive(vm))
|
||||
return;
|
||||
goto cleanup;
|
||||
|
||||
if (qemuMigrationResetTLS(driver, vm, job) < 0)
|
||||
return;
|
||||
goto cleanup;
|
||||
|
||||
for (cap = 0; cap < QEMU_MONITOR_MIGRATION_CAPS_LAST; cap++) {
|
||||
if (qemuMigrationSetOption(driver, vm, cap, false, job) < 0)
|
||||
return;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if (err) {
|
||||
virSetError(err);
|
||||
virFreeError(err);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user