]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
fixup! Partial reloads of channels
authorMaria Matejka <mq@ucw.cz>
Thu, 5 Oct 2023 12:22:16 +0000 (14:22 +0200)
committerMaria Matejka <mq@ucw.cz>
Thu, 5 Oct 2023 12:22:16 +0000 (14:22 +0200)
nest/proto.c

index b6440141778fb26af37cbf88a150348572f0e2a2..38228c12ce30537ba0e12096c99b93f52173ff57 100644 (file)
@@ -371,16 +371,19 @@ channel_roa_out_changed(struct settle *se)
 
   CD(c, "Feeding triggered by RPKI change");
   
-  /* Get config.Y global var */
-
+  /* Setup feeding request */
   struct channel_feeding_request *cfr = lp_alloc(s->trie->lp, sizeof *cfr);
   *cfr = (struct channel_feeding_request) {
     .type = CFRT_AUXILIARY,
     .trie = s->trie,
     .done = channel_roa_out_reload_done,
   };
-  channel_request_feeding(c, cfr);
 
+  /* Prepare new trie */
+  s->trie = f_new_trie(lp_new(c->proto->pool), 0);
+
+  /* Actually request the feed */
+  channel_request_feeding(c, cfr);
 }
 
 static void