提交 808fa349 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 391728be
...@@ -412,13 +412,6 @@ qemuCheckpointCreateXML(virDomainPtr domain, ...@@ -412,13 +412,6 @@ qemuCheckpointCreateXML(virDomainPtr domain,
if (!redefine && if (!redefine &&
VIR_STRDUP(chk->def->parent_name, other->def->name) < 0) VIR_STRDUP(chk->def->parent_name, other->def->name) < 0)
goto endjob; 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 */ /* actually do the checkpoint */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册