From: Igor Putovny Date: Thu, 12 Dec 2024 13:51:43 +0000 (+0100) Subject: Recycle bucket ID when bucket is empty X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8420bc438426d6c3b7d1b9f34e8e769f3984fe51;p=thirdparty%2Fbird.git Recycle bucket ID when bucket is empty --- diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index c86793e9a..1fe5168d2 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -1962,6 +1962,7 @@ aggregator_rt_notify(struct proto *P, struct channel *src_ch, net *net, rte *new if (old_bucket && (!old_bucket->rte || !old_bucket->count)) { ASSERT_DIE(!old_bucket->rte && !old_bucket->count); + hmap_clear(&p->bucket_id_map, old_bucket->id); HASH_REMOVE2(p->buckets, AGGR_BUCK, p->p.pool, old_bucket); } }