mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +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) {
|
||||
qemuDomainRemoveInactive(driver, vm);
|
||||
qemuProcessEndJob(driver, vm);
|
||||
goto cleanup;
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
if (inactiveConfig) {
|
||||
@ -2173,8 +2172,7 @@ qemuSnapshotRevert(virDomainObj *vm,
|
||||
virDomainAuditStart(vm, "from-snapshot", rc >= 0);
|
||||
if (rc < 0) {
|
||||
qemuDomainRemoveInactive(driver, vm);
|
||||
qemuProcessEndJob(driver, vm);
|
||||
goto cleanup;
|
||||
goto endjob;
|
||||
}
|
||||
detail = VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT;
|
||||
event = virDomainEventLifecycleNewFromObj(vm,
|
||||
|
Loading…
Reference in New Issue
Block a user