mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
Fix deadlock when reloading configs
This commit is contained in:
parent
289d52c49e
commit
43b897c17a
@ -1,3 +1,8 @@
|
|||||||
|
Mon Dec 15 10:59:19 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/domain_conf.c: Unlock domain object after fetching
|
||||||
|
it to avoid deadlock when re-loading configs
|
||||||
|
|
||||||
Fri Dec 12 17:41:19 +0100 2008 Jim Meyering <meyering@redhat.com>
|
Fri Dec 12 17:41:19 +0100 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
remove redundant optname arguments
|
remove redundant optname arguments
|
||||||
|
@ -3330,8 +3330,11 @@ virDomainObjPtr virDomainLoadConfig(virConnectPtr conn,
|
|||||||
VIR_DOMAIN_XML_INACTIVE)))
|
VIR_DOMAIN_XML_INACTIVE)))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (virDomainFindByName(doms, def->name))
|
if ((dom = virDomainFindByName(doms, def->name))) {
|
||||||
|
virDomainObjUnlock(dom);
|
||||||
|
dom = NULL;
|
||||||
newVM = 0;
|
newVM = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(dom = virDomainAssignDef(conn, doms, def)))
|
if (!(dom = virDomainAssignDef(conn, doms, def)))
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
Reference in New Issue
Block a user