mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-21 22:07:03 +00:00
BGP: End route refresh before another starts
This commit is contained in:
parent
e1701128bf
commit
6abef2b20b
@ -955,6 +955,9 @@ bgp_refresh_begin(struct bgp_channel *c)
|
|||||||
if (c->load_state == BFS_LOADING)
|
if (c->load_state == BFS_LOADING)
|
||||||
{ log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; }
|
{ log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; }
|
||||||
|
|
||||||
|
if (c->load_state == BFS_REFRESHING)
|
||||||
|
rt_refresh_end(&c->c.in_req);
|
||||||
|
|
||||||
c->load_state = BFS_REFRESHING;
|
c->load_state = BFS_REFRESHING;
|
||||||
rt_refresh_begin(&c->c.in_req);
|
rt_refresh_begin(&c->c.in_req);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user