mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
option to free_root() to not my_free() the blocks
fixed bug/updated count_distinct2 test changed reset in count distinct to avoid calls to my_free() include/my_sys.h: option to free_root() not to do my_free() include/my_tree.h: reset_tree() mysql-test/r/count_distinct2.result: added group by test mysql-test/t/count_distinct2.test: group by test + fixed bug - need to drop table mysys/my_alloc.c: mark_blocks_free() mysys/tree.c: reset_tree() sql/item_sum.cc: in count distinct reset_tree instead of delete_tree
This commit is contained in:
@ -108,7 +108,11 @@ extern int NEAR my_errno; /* Last error in mysys */
|
||||
|
||||
/* root_alloc flags */
|
||||
#define MY_KEEP_PREALLOC 1
|
||||
|
||||
#define MY_MARK_BLOCKS_FREE 2 /* do not my_free() blocks,
|
||||
just move used into free list
|
||||
and mark all blocks as fully free
|
||||
*/
|
||||
|
||||
/* defines when allocating data */
|
||||
|
||||
#ifdef SAFEMALLOC
|
||||
|
Reference in New Issue
Block a user