mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu_snapshot: revert: jump to endjob instead of calling qemuProcessEndJob
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
ebdd9a5842
commit
e799743786
@ -2149,8 +2149,7 @@ qemuSnapshotRevert(virDomainObj *vm,
|
|||||||
|
|
||||||
if (qemuSnapshotRevertInactive(driver, vm, snap) < 0) {
|
if (qemuSnapshotRevertInactive(driver, vm, snap) < 0) {
|
||||||
qemuDomainRemoveInactive(driver, vm);
|
qemuDomainRemoveInactive(driver, vm);
|
||||||
qemuProcessEndJob(driver, vm);
|
goto endjob;
|
||||||
goto cleanup;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inactiveConfig) {
|
if (inactiveConfig) {
|
||||||
@ -2173,8 +2172,7 @@ qemuSnapshotRevert(virDomainObj *vm,
|
|||||||
virDomainAuditStart(vm, "from-snapshot", rc >= 0);
|
virDomainAuditStart(vm, "from-snapshot", rc >= 0);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
qemuDomainRemoveInactive(driver, vm);
|
qemuDomainRemoveInactive(driver, vm);
|
||||||
qemuProcessEndJob(driver, vm);
|
goto endjob;
|
||||||
goto cleanup;
|
|
||||||
}
|
}
|
||||||
detail = VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT;
|
detail = VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT;
|
||||||
event = virDomainEventLifecycleNewFromObj(vm,
|
event = virDomainEventLifecycleNewFromObj(vm,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user