0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Merge branch 'mq-aggregator-for-v3' into thread-next

This commit is contained in:
Maria Matejka 2023-11-01 17:44:37 +01:00
commit f32e53d7b1

View File

@ -75,6 +75,7 @@ aggregator_bucket_update(struct aggregator_proto *p, struct aggregator_bucket *b
if (!bucket->rte)
{
rte_update(p->dst, net, NULL, bucket->last_src);
rt_unlock_source(bucket->last_src);
bucket->last_src = NULL;
return;
}
@ -411,6 +412,9 @@ aggregator_shutdown(struct proto *P)
sl_free(arte);
}
if (b->last_src)
rt_unlock_source(b->last_src);
ASSERT_DIE(b->count == 0);
HASH_REMOVE(p->buckets, AGGR_BUCK, b);
sl_free(b);