mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
fixup! Partial reloads of channels
This commit is contained in:
parent
468833b24f
commit
479911ee78
@ -371,16 +371,19 @@ channel_roa_out_changed(struct settle *se)
|
|||||||
|
|
||||||
CD(c, "Feeding triggered by RPKI change");
|
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);
|
struct channel_feeding_request *cfr = lp_alloc(s->trie->lp, sizeof *cfr);
|
||||||
*cfr = (struct channel_feeding_request) {
|
*cfr = (struct channel_feeding_request) {
|
||||||
.type = CFRT_AUXILIARY,
|
.type = CFRT_AUXILIARY,
|
||||||
.trie = s->trie,
|
.trie = s->trie,
|
||||||
.done = channel_roa_out_reload_done,
|
.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
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user