Browse Source

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
Olle E. Johansson 12 years ago
parent
commit
52331c6ba8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/mtree/mtree_mod.c

+ 3 - 0
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;