Module: sip-router
Branch: master
Commit: 52331c6ba80f2eb862405e7987ab21d6f55549e0
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=52331c6ba80f2eb862405e7987ab21d6f55549e0

Author: Olle E. Johansson <[email protected]>
Committer: Olle E. Johansson <[email protected]>
Date:   Thu Jan 10 20:10:49 2013 +0100

mtree Bug fix - save number of nodes in mtree data structure at load

Otherwise MI function doesn't report anything but zero nodes and memory

---

 modules/mtree/mtree_mod.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/mtree/mtree_mod.c b/modules/mtree/mtree_mod.c
index 7a2d666..389fa3d 100644
--- a/modules/mtree/mtree_mod.c
+++ b/modules/mtree/mtree_mod.c
@@ -593,6 +593,9 @@ static int mt_load_db(str *tname)
 
        bk_head = old_tree->head;
        old_tree->head = new_tree.head;
+       old_tree->nrnodes = new_tree.nrnodes;
+       old_tree->nritems = new_tree.nritems;
+       old_tree->memsize = new_tree.memsize;
 
        mt_reload_flag = 0;
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to