From 4bcf7ac37f0fd84f51fc82281fce989e0d6661fd Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Fri, 20 Oct 2023 13:11:49 +0200 Subject: [PATCH] Fix how bucket for new leaf nodes is chosen --- proto/aggregator/aggregator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index 3941dd94..a926cf27 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -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; }