qemu: blockcopy: Don't remove existing disk mirror info
authorPeter Krempa <pkrempa@redhat.com>
Wed, 25 Jun 2014 16:11:17 +0000 (18:11 +0200)
committerEric Blake <eblake@redhat.com>
Thu, 26 Jun 2014 22:36:25 +0000 (16:36 -0600)
commitea1d4666d885ec68480f22a65d1a275a293484cd
treee0e9700bd86403a76f930e9b888c80daef4dcdba
parent46de45d079ae2622660fe147cf237ee617cc461c
qemu: blockcopy: Don't remove existing disk mirror info

When creating a new disk mirror the new struct is stored in a separate
variable until everything went well. The removed hunk would actually
remove existing mirror information for example when the api would be run
if a mirror still exists.

(cherry picked from commit 02b364e186d487f54ed410c01af042f23e812d42)

This fixes a regression introduced in commit ff5f30b.

Signed-off-by: Eric Blake <eblake@redhat.com>

Conflicts:
src/qemu/qemu_driver.c - no refactoring of commits 7b7bf001, 4f20226
src/qemu/qemu_driver.c