From: Maria Matejka Date: Wed, 12 Jun 2024 10:00:11 +0000 (+0200) Subject: Table: fixed export_all flush when export_best is idle X-Git-Tag: v3.0.0~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95d8329043bdc290ac48c87902d2787b731bf391;p=thirdparty%2Fbird.git Table: fixed export_all flush when export_best is idle --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 59cc975d2..0266964e5 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -1442,8 +1442,8 @@ rte_announce(struct rtable_private *tab, const struct netindex *i UNUSED, net *n if (best_rpe) /* Announced best, need an anchor to all */ best_rpe->seq_all = all_rpe->it.seq; - else if (new_best != old_best) - /* Would announce best but it's empty with no reader */ + else if (!lfjour_pending_items(&tab->export_best.journal)) + /* Best is idle, flush its recipient immediately */ rt_flush_best(tab, all_rpe->it.seq); rt_check_cork_high(tab);