]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Table: Re-scheduling prune event when another prune loop is pending
authorMaria Matejka <mq@ucw.cz>
Mon, 12 Sep 2022 16:27:01 +0000 (18:27 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 18 Sep 2022 14:33:51 +0000 (16:33 +0200)
nest/rt-table.c

index f5750cac444be9919a58e5c3f3c4eb7edb139b40..35da182c48b8e0af462207bc45da5dde53def945 100644 (file)
@@ -2881,7 +2881,8 @@ again:
 #endif
 
   /* state change 2->0, 3->1 */
-  tab->prune_state &= 1;
+  if (tab->prune_state &= 1)
+    birdloop_flag(tab->loop, RTF_CLEANUP);
 
   if (tab->trie_new)
   {