summaryrefslogtreecommitdiff
path: root/include/my_sys.h
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-02-02 23:01:58 +0300
committerunknown <konstantin@mysql.com>2004-02-02 23:01:58 +0300
commite0b0ec6b2c98f05547018655b6030a8d62bc511f (patch)
treef3ac440023264a510364912fe7f9dbaa97266806 /include/my_sys.h
parent883f11b68c402b106dbff2542435782a8af3b55d (diff)
downloadmariadb-git-e0b0ec6b2c98f05547018655b6030a8d62bc511f.tar.gz
Proposed (version #2) fix for bug #1948:
"system variable query_prealloc_size can be only global" include/my_sys.h: Fix for bug #1948: - added reset_root_defaults function declaration mysys/my_alloc.c: Fix for bug #1948: - implementation and description of reset_root_defaults sql/set_var.cc: Fix for bug #1948: - fix_thd_mem_root and fix_trans_mem_root after update triggers implemented for variables query_prealloc_size, query_alloc_block_size, trans_prealloc_size, trans_alloc_block_size
Diffstat (limited to 'include/my_sys.h')
-rw-r--r--include/my_sys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index e1656cfc626..75e22629a19 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -740,6 +740,8 @@ extern void init_alloc_root(MEM_ROOT *mem_root, uint block_size,
extern gptr alloc_root(MEM_ROOT *mem_root,unsigned int Size);
extern void free_root(MEM_ROOT *root, myf MyFLAGS);
extern void set_prealloc_root(MEM_ROOT *root, char *ptr);
+extern void reset_root_defaults(MEM_ROOT *mem_root, uint block_size,
+ uint prealloc_size);
extern char *strdup_root(MEM_ROOT *root,const char *str);
extern char *strmake_root(MEM_ROOT *root,const char *str,uint len);
extern char *memdup_root(MEM_ROOT *root,const char *str,uint len);