]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Table export: Drop redundant not-seen old route nullification
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Wed, 23 Apr 2025 11:50:53 +0000 (13:50 +0200)
committerMaria Matejka <mq@ucw.cz>
Tue, 6 May 2025 15:19:38 +0000 (17:19 +0200)
This piece of code was accidentally reintroduced in
da838bca052b3b1e5533e2900299b4140e2d5d13 CLI: fix channel stats display

and not only is obviously not relevant to that commit, it is also
obviously wrong because exactly the same nullification has been pushed
later to rt_notify_basic().

nest/rt-table.c

index 5b438aa7f564bcbb7b37bd700aed1200a6215940..f1fc2e4f03f887c84fcd69abed5dc3fd235332a7 100644 (file)
@@ -1580,10 +1580,6 @@ channel_notify_basic(void *_channel)
              rt_export_processed(&c->out_req, rpe->it.seq);
            }
 
-          /* Have we exported the old route? */
-          if (old && !bmap_test(&c->export_accepted_map, old->id))
-            old = NULL;
-
          /* Ignore invalid routes */
          if (!rte_is_valid(new))
            new = NULL;