From 670c46725b70fa9105f5724d7066863d60efdb97 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 7 Apr 2024 14:11:27 +0200 Subject: [PATCH] Fixed announcement inconsistency between feeds and regular exports --- nest/rt-table.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nest/rt-table.c b/nest/rt-table.c index f1b13872..68799177 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -3935,6 +3935,14 @@ rt_prepare_feed(struct rt_export_hook *c, net *n, rt_feed_block *b) const rte *new = RTE_OR_NULL(n->routes); b->rpe[b->pos++] = (struct rt_pending_export) { .new = new, .new_best = new, }; + + /* Mark all journal items seen */ + if (req->mark_seen) + RPE_WALK(n->first, rpe, NULL) + req->mark_seen(req, rpe); + else + RPE_WALK(n->first, rpe, NULL) + rpe_mark_seen(c, rpe); } } else