0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Fix how bucket for new leaf nodes is chosen

This commit is contained in:
Igor Putovny 2023-10-20 13:11:49 +02:00
parent 98621a741a
commit 2b18dea7c2

View File

@ -200,8 +200,8 @@ first_pass(struct trie_node *node, slab *trie_slab)
if (is_leaf(node))
{
node->potential_buckets[node->potential_buckets_count++] = get_ancestor_bucket(node);
//node->potential_buckets[node->potential_buckets_count++] = node->bucket;
//node->potential_buckets[node->potential_buckets_count++] = get_ancestor_bucket(node);
node->potential_buckets[node->potential_buckets_count++] = node->bucket;
return;
}