]> 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>
Mon, 13 May 2024 06:52:49 +0000 (08:52 +0200)
nest/rt-table.c

index 7f2d1f6ec9dc4b7090c31b6dc9bc373935b9d6ca..a6af1c74b8c79bee9eb0dbd8414d0f01d239c699 100644 (file)
@@ -3933,6 +3933,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