summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-03-19 21:23:13 +0200
committermonty@narttu.mysql.fi <>2003-03-19 21:23:13 +0200
commit48a9c1239c6b2b2ba27f8a1a9a0df98af204d53b (patch)
tree8bda97a92a625441a765c5282461fd89ee352624 /sql/unireg.h
parenta916a03916eda128d3305e58cc49cf84e73deae6 (diff)
downloadmariadb-git-48a9c1239c6b2b2ba27f8a1a9a0df98af204d53b.tar.gz
Added support for ULONG division with DIV
Fixed non fatal memory leak in slave code.
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index a5cd784a14a..9430329e67a 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -63,6 +63,13 @@
#define MAX_SORT_MEMORY (2048*1024-MALLOC_OVERHEAD)
#define MIN_SORT_MEMORY (32*1024-MALLOC_OVERHEAD)
+
+/* Memory allocated when parsing a statement / saving a statement */
+#define MEM_ROOT_BLOCK_SIZE 8192
+#define MEM_ROOT_PREALLOC 8192
+#define TRANS_MEM_ROOT_BLOCK_SIZE 4096
+#define TRANS_MEM_ROOT_PREALLOC 4096
+
#define DEFAULT_ERROR_COUNT 64
#define DEFAULT_PREP_STMT_COUNT 64
#define EXTRA_RECORDS 10 /* Extra records in sort */