]> xenbits.xensource.com Git - libvirt.git/commit
qemu: snapshot: Refactor snapshot rollback on failure
authorPeter Krempa <pkrempa@redhat.com>
Fri, 16 Dec 2016 05:12:34 +0000 (06:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Jan 2017 18:12:19 +0000 (19:12 +0100)
commitcbb4d229de30b5a6cfc5f4cecccb2db174196be3
treef991c1739475ca2194af636b620a3e45a3be4308
parent7456c4f5f064f692e5f89a9ee3ef0fb54041e23b
qemu: snapshot: Refactor snapshot rollback on failure

The code at first changed the definition and then rolled it back in case
of failure. This was ridiculous. Refactor the code so that the image in
the definition is changed only when the snapshot is successful.

The refactor will also simplify further fix of image locking when doing
snapshots.
src/qemu/qemu_driver.c