mirror of https://gitee.com/openkylin/libvirt.git
qemu_snapshot: revert: save metadata within qemu process job
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
815182a782
commit
5acd92a4c3
|
@ -2276,14 +2276,11 @@ qemuSnapshotRevert(virDomainObj *vm,
|
|||
goto endjob;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined);
|
||||
|
||||
endjob:
|
||||
qemuProcessEndJob(driver, vm);
|
||||
|
||||
if (ret == 0)
|
||||
ret = qemuSnapshotRevertWriteMetadata(vm, snap, driver, cfg, defined);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue