0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

TMP: table best-all cleanup debug

This commit is contained in:
Maria Matejka 2024-06-11 15:38:27 +02:00
parent ea4aef2a14
commit 9991fbbe0b

View File

@ -1371,13 +1371,17 @@ channel_notify_basic(void *_channel)
static void static void
rt_flush_best(struct rtable_private *tab, u64 upto) rt_flush_best(struct rtable_private *tab, u64 upto)
{ {
u64 last_seq = 0;
RT_EXPORT_WALK(&tab->best_req, u) RT_EXPORT_WALK(&tab->best_req, u)
{ {
ASSERT_DIE(u->kind == RT_EXPORT_UPDATE); ASSERT_DIE(u->kind == RT_EXPORT_UPDATE);
ASSERT_DIE(u->update->seq <= upto); ASSERT_DIE(u->update->seq <= upto);
if (u->update->seq == upto) last_seq = u->update->seq;
if (last_seq == upto)
return; return;
} }
rt_trace(tab, D_STATES, "Export best full flushed regular up to %lu", last_seq);
} }
static struct rt_pending_export * static struct rt_pending_export *