]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
TMP: table best-all cleanup debug
authorMaria Matejka <mq@ucw.cz>
Tue, 11 Jun 2024 13:38:27 +0000 (15:38 +0200)
committerMaria Matejka <mq@ucw.cz>
Wed, 12 Jun 2024 12:48:33 +0000 (14:48 +0200)
nest/rt-table.c

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