mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 13:35:17 +00:00
domain_conf: fix domain deadlock
If you use public api virConnectListAllDomains() with second parameter set to NULL to get only the number of domains you will lock out all other operations with domains. Introduced by commit 2c680804. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> (cherry picked from commit fc22b2e74890873848b43fffae43025d22053669)
This commit is contained in:
parent
e8f6971e3f
commit
861f9b1c45
@ -18544,7 +18544,7 @@ virDomainListPopulate(void *payload,
|
||||
/* just count the machines */
|
||||
if (!data->domains) {
|
||||
data->ndomains++;
|
||||
return;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (!(dom = virGetDomain(data->conn, vm->def->name, vm->def->uuid))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user