]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: snapshot: Don't clear current snapshot when redefining an existing one
authorPeter Krempa <pkrempa@redhat.com>
Tue, 1 Oct 2019 05:22:14 +0000 (07:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 24 Oct 2019 17:35:34 +0000 (19:35 +0200)
commit551dde92562afc5a5501d8e38dceae5d91a59d2d
tree74d6a23218435d62b9764f3e95d62d0a44b20ea2
parent639d6e704530d12a6fb4b7244abe6825411e490d
conf: snapshot: Don't clear current snapshot when redefining an existing one

There's no point in clearing the current snapshot when we are just
changing the definition of the current snapshot as by the virtue of the
'update_current' flag the same snapshot would become current in
qemuDomainSnapshotCreateXML.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/snapshot_conf.c