]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: checkpoint: Don't update current checkpoint until we are done
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Sep 2019 14:37:48 +0000 (16:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2019 05:08:15 +0000 (07:08 +0200)
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>
src/qemu/qemu_checkpoint.c

index 0d90bbec14373095d9df42b5b99729879c1182a9..8856a90ce88493ac2606bc0c55b65265282e04b5 100644 (file)
@@ -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 */