mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-24 18:01:54 +00:00
Route table fast prune fixup
This commit is contained in:
parent
f22bab9818
commit
87512ccdff
@ -2308,16 +2308,13 @@ rt_prune_table(void *data)
|
|||||||
if (tab->prune_state == 0)
|
if (tab->prune_state == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (tab->delete && !rt_fast_prune_ready(tab))
|
||||||
|
return;
|
||||||
|
|
||||||
rt_lock_table(tab);
|
rt_lock_table(tab);
|
||||||
|
|
||||||
if (tab->prune_state == 1)
|
if (tab->prune_state == 1)
|
||||||
{
|
{
|
||||||
if (tab->delete && !rt_fast_prune_ready(tab))
|
|
||||||
{
|
|
||||||
rt_unlock_table(tab);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mark channels to flush */
|
/* Mark channels to flush */
|
||||||
WALK_LIST2(ih, n, tab->imports, n)
|
WALK_LIST2(ih, n, tab->imports, n)
|
||||||
if (ih->import_state == TIS_STOP)
|
if (ih->import_state == TIS_STOP)
|
||||||
|
Loading…
Reference in New Issue
Block a user