From 27f2859a9b23af6d27997f5b0ff0433404f42a68 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Fri, 14 Feb 2025 17:51:33 +0100 Subject: [PATCH] Small changes --- proto/aggregator/aggregator.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index a8d82be94..f8ef81456 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -1771,25 +1771,12 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new } else if (PREFIX_AGGR == p->aggr_mode) { - // old => old_route, new => arte if (p->root) { - if ((old && new) || (!old && new)) - { - assert(new_route != NULL); - - if (old && new) - log("rt notify: update"); - else if (!old && new) - log("rt notify: announce"); - - aggregator_process_update(p, old_route, new_route); - } - else if (old && !new) - { - log("rt notify: withdraw"); + if (old && !new) aggregator_process_withdraw(p, old_route); - } + else + aggregator_process_update(p, old_route, new_route); /* Process all route withdrawals which were caused by the update */ aggregator_withdraw_rte(p); @@ -2014,6 +2001,7 @@ aggregator_cleanup(struct proto *P) p->bucket_list_size = 0; p->bucket_list_count = 0; + p->rte_withdrawal_stack = NULL; p->rte_withdrawal_count = 0; p->bucket_id_map = (struct hmap) { 0 }; -- 2.47.2