]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: snapshot: Don't update current snapshot until we're done
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Sep 2019 14:22:08 +0000 (16:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2019 05:08:15 +0000 (07:08 +0200)
commit391728befd009bccaa317859b98c3f15fc341260
treebd861276d0689bce65b506dbb1d4baeaa0647121
parentcd62dbc03bf3a5c7ee3d155ceafb39dc16ed1b7b
qemu: snapshot: Don't update current snapshot until we're done

Since commit f105627992e we store whether a snapshot is current globally
rather than locally in the snapshot object.

This means that we don't have to unset the current snapshot prior to
taking/reverting the snapshot and we can do it only when everything is
done successfully.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c