]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: bulk stats: Fix logic in monitor handling
authorFrancesco Romani <fromani@redhat.com>
Thu, 11 Dec 2014 07:44:09 +0000 (08:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 11 Dec 2014 10:02:05 +0000 (11:02 +0100)
commitcb104ef734dfea12cb8826dba7e2c98912c4b7e1
tree03d8eec4b9d155a0920d11bc6489dddb5ea42cd5
parentc7c96647e903f50273977d1514d3a2a8f713b6e7
qemu: bulk stats: Fix logic in monitor handling

A logic bug in qemuConnectGetAllDomainStats makes the code mark the
monitor as available when qemuDomainObjBeginJob fails, instead of when
it succeeds, as the correct flow requires.

This patch fixes the check and updates the code documentation
accordingly.

Broken by commit 57023c0a3af4af1c547189c1f6712ed5edeb0c0b.

Signed-off-by: Francesco Romani <fromani@redhat.com>
src/qemu/qemu_driver.c