]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed announcement inconsistency between feeds and regular exports
authorMaria Matejka <mq@ucw.cz>
Sun, 7 Apr 2024 12:11:27 +0000 (14:11 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 22 May 2024 09:34:34 +0000 (11:34 +0200)
nest/rt-table.c

index f1b13872fdc7679e20c990b5bf65e9f49402a7f2..68799177e01464f766cfa23f9b509af8bbdf1059 100644 (file)
@@ -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