mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu: checkpoint: Don't update current checkpoint until we are done
Similarly to the snapshot code there's no reason to modify current checkpoint until we are done creating the new one. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
391728befd
commit
808fa349f3
@ -412,13 +412,6 @@ qemuCheckpointCreateXML(virDomainPtr domain,
|
||||
if (!redefine &&
|
||||
VIR_STRDUP(chk->def->parent_name, other->def->name) < 0)
|
||||
goto endjob;
|
||||
if (update_current) {
|
||||
virDomainCheckpointSetCurrent(vm->checkpoints, NULL);
|
||||
if (qemuCheckpointWriteMetadata(vm, other,
|
||||
driver->caps, driver->xmlopt,
|
||||
cfg->checkpointDir) < 0)
|
||||
goto endjob;
|
||||
}
|
||||
}
|
||||
|
||||
/* actually do the checkpoint */
|
||||
|
Loading…
Reference in New Issue
Block a user