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:
Pavel Hrdina 2021-12-01 14:10:56 +01:00
parent 815182a782
commit 5acd92a4c3
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}