From 8420bc438426d6c3b7d1b9f34e8e769f3984fe51 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Thu, 12 Dec 2024 14:51:43 +0100 Subject: [PATCH] Recycle bucket ID when bucket is empty --- proto/aggregator/aggregator.c | 1 + 1 file changed, 1 insertion(+) 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); } } -- 2.47.2