diff options
author | monty@donna.mysql.com <> | 2000-09-12 03:02:33 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-09-12 03:02:33 +0300 |
commit | 2776500c220c92bb78df03513cc3dd33588f40e5 (patch) | |
tree | 051686baf31e5363765879f2437ada3abea6b71b /mysys/tree.c | |
parent | 497007e2bd9cb127d54a4fdb02253301f404ce7f (diff) | |
download | mariadb-git-2776500c220c92bb78df03513cc3dd33588f40e5.tar.gz |
Update to new root alloc, OPTIMIZE TABLE and some other changes
Diffstat (limited to 'mysys/tree.c')
-rw-r--r-- | mysys/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/tree.c b/mysys/tree.c index 259fc5fb9d0..a36fd06f3f1 100644 --- a/mysys/tree.c +++ b/mysys/tree.c @@ -96,7 +96,7 @@ void init_tree(TREE *tree, uint default_alloc_size, int size, } if (!(tree->with_delete=with_delete)) { - init_alloc_root(&tree->mem_root, default_alloc_size); + init_alloc_root(&tree->mem_root, default_alloc_size,0); tree->mem_root.min_malloc=(sizeof(TREE_ELEMENT)+tree->size_of_element); } DBUG_VOID_RETURN; @@ -115,7 +115,7 @@ void delete_tree(TREE *tree) { if (tree->free) delete_tree_element(tree,tree->root); - free_root(&tree->mem_root); + free_root(&tree->mem_root,MYF(0)); } } tree->root= &tree->null_element; |