summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkonstantin@oak.local <>2004-03-02 22:39:50 +0300
committerkonstantin@oak.local <>2004-03-02 22:39:50 +0300
commit8cc8b0ea5c501fff978a21eab1d062f54475fe68 (patch)
treed108cc6395d7ecb8169af4abe81b03df2d2fbea9 /include
parent0a27eef8149a3b7c2b11a711915db0fe12be5eed (diff)
downloadmariadb-git-8cc8b0ea5c501fff978a21eab1d062f54475fe68.tar.gz
Desperate attempt to push part of prepared statements cleanup which was
reviewed in Saint-Petersbourg (including post-review fixes).
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 6547022601d..6d22301f5d8 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -714,6 +714,7 @@ extern void my_free_lock(byte *ptr,myf flags);
#define my_free_lock(A,B) my_free((A),(B))
#endif
#define alloc_root_inited(A) ((A)->min_malloc != 0)
+#define clear_alloc_root(A) bzero((void *) (A), sizeof(MEM_ROOT))
extern void init_alloc_root(MEM_ROOT *mem_root, uint block_size,
uint pre_alloc_size);
extern gptr alloc_root(MEM_ROOT *mem_root,unsigned int Size);