]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: fix virDomainLeaseIndex logic
authorLuyao Huang <lhuang@redhat.com>
Mon, 15 Dec 2014 06:46:28 +0000 (14:46 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Dec 2014 13:19:38 +0000 (14:19 +0100)
commit046d82d72fa7a2daf2bcb39af3d1a5c3d22e23bd
tree2f0ab8351d09a654f23a3c121d2980a58491074d
parent311b4a677f60cc1a3a29c525a703b31ec47d95b5
conf: fix virDomainLeaseIndex logic

https://bugzilla.redhat.com/show_bug.cgi?id=1174096

When both parameter have lockspaces present, virDomainLeaseIndex
always returns -1 even there is a lease the same with the one we
check. This is due to broken logic in 'if-else' statement.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/conf/domain_conf.c