From 07d3f682adc216cbd2fc28ec347bcaa1a1545923 Mon Sep 17 00:00:00 2001 From: Igor Putovny Date: Thu, 11 Apr 2024 16:15:16 +0200 Subject: [PATCH] Remove debugging logs --- lib/hash.h | 8 -------- proto/aggregator/aggregator.c | 8 -------- 2 files changed, 16 deletions(-) diff --git a/lib/hash.h b/lib/hash.h index 389be8e3..3c173958 100644 --- a/lib/hash.h +++ b/lib/hash.h @@ -73,19 +73,11 @@ u32 _h = HASH_FN(v, id, id##_KEY((node))); \ HASH_TYPE(v) *_n, **_nn = (v).data + _h; \ \ - log(L_WARN "hash: %u", _h); \ - \ while ((*_nn) && (*_nn != (node))) \ - { \ - log(L_WARN "_nn: %p", *_nn); \ _nn = &(id##_NEXT((*_nn))); \ - } \ \ if (_n = *_nn) \ - { \ - log(L_WARN "Success %p", _n); \ HASH_DO_REMOVE(v,id,_nn); \ - } \ _n; \ }) diff --git a/proto/aggregator/aggregator.c b/proto/aggregator/aggregator.c index ac6f02cd..309d03d5 100644 --- a/proto/aggregator/aggregator.c +++ b/proto/aggregator/aggregator.c @@ -224,9 +224,7 @@ first_pass_new(struct trie_node *node, slab *trie_slab) } if (node->bucket == NULL) - { node->bucket = node->parent->bucket; - } for (int i = 0; i < 2; i++) { @@ -241,16 +239,10 @@ first_pass_new(struct trie_node *node, slab *trie_slab) } if (node->child[0]) - { first_pass_new(node->child[0], trie_slab); - log("Entering first pass with node %p", node->child[0]); - } if (node->child[1]) - { first_pass_new(node->child[1], trie_slab); - log("Entering first pass with node %p", node->child[1]); - } node->bucket = NULL; }