mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-05 00:21:54 +00:00
More descriptive bug message on deadlock prevention
This commit is contained in:
parent
8558e666e0
commit
d7f5248bcc
@ -73,14 +73,14 @@ rp_new(pool *p, struct domain_generic *dom, const char *name)
|
|||||||
pool *z = ralloc(p, &pool_class);
|
pool *z = ralloc(p, &pool_class);
|
||||||
|
|
||||||
if (dg_order(p->domain) > dg_order(dom))
|
if (dg_order(p->domain) > dg_order(dom))
|
||||||
bug("Requested reverse order pool creation: %s (%d) can't be a parent of %s (%d)",
|
bug("Requested reverse order pool creation: %s (%s, order %d) can't be a parent of %s (%s, order %d)",
|
||||||
domain_name(p->domain), dg_order(p->domain),
|
p->name, domain_name(p->domain), dg_order(p->domain),
|
||||||
domain_name(dom), dg_order(dom));
|
name, domain_name(dom), dg_order(dom));
|
||||||
|
|
||||||
if ((dg_order(p->domain) == dg_order(dom)) && (p->domain != dom))
|
if ((dg_order(p->domain) == dg_order(dom)) && (p->domain != dom))
|
||||||
bug("Requested incomparable order pool creation: %s (%d) can't be a parent of %s (%d)",
|
bug("Requested incomparable order pool creation: %s (%s, order %d) can't be a parent of %s (%s, order %d)",
|
||||||
domain_name(p->domain), dg_order(p->domain),
|
p->name, domain_name(p->domain), dg_order(p->domain),
|
||||||
domain_name(dom), dg_order(dom));
|
name, domain_name(dom), dg_order(dom));
|
||||||
|
|
||||||
rp_init(z, dom, name);
|
rp_init(z, dom, name);
|
||||||
return z;
|
return z;
|
||||||
|
Loading…
Reference in New Issue
Block a user