mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
Export: Throw a warning instead of crashing on export_accepted_map inconsistency
This commit is contained in:
parent
edffd82057
commit
c2480ff533
@ -1051,8 +1051,11 @@ rt_notify_basic(struct channel *c, const rte *new, const rte *old)
|
|||||||
/* If this is a refeed, we may need to copy the new route to the old one */
|
/* If this is a refeed, we may need to copy the new route to the old one */
|
||||||
if (!old && bmap_test(&c->export_accepted_map, new->id))
|
if (!old && bmap_test(&c->export_accepted_map, new->id))
|
||||||
{
|
{
|
||||||
ASSERT_DIE(rt_export_get_state(&c->out_req) == TES_PARTIAL);
|
if (rt_export_get_state(&c->out_req) == TES_PARTIAL)
|
||||||
old = new;
|
old = new;
|
||||||
|
else
|
||||||
|
log(L_WARN "%s.%s: Got new route for %N (id %u) which is already marked accepted, weird",
|
||||||
|
c->proto->name, c->name, new->net, new->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Run the filters, actually */
|
/* Run the filters, actually */
|
||||||
|
Loading…
Reference in New Issue
Block a user