Module: sip-router
Branch: master
Commit: 94bad4414b36334061ef0d3ec42747d672eaf058
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=94bad44…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Feb 24 18:17:00 2014 +0100
mtree: reset tree statistics upon reload
- related to FS#398, reported by JoshE
---
modules/mtree/mtree_mod.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/mtree/mtree_mod.c b/modules/mtree/mtree_mod.c
index 4aa1d6b..1ef03c5 100644
--- a/modules/mtree/mtree_mod.c
+++ b/modules/mtree/mtree_mod.c
@@ -527,6 +527,10 @@ static int mt_load_db(m_tree_t *pt)
memcpy(&new_tree, old_tree, sizeof(m_tree_t));
new_tree.head = 0;
new_tree.next = 0;
+ new_tree.nrnodes = 0;
+ new_tree.nritems = 0;
+ new_tree.memsize = 0;
+
if (mt_dbf.use_table(db_con, &old_tree->dbtable) < 0)
{