summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-10-11 22:00:24 +0300
committermonty@mashka.mysql.fi <>2003-10-11 22:00:24 +0300
commitc95d142f8f602b717c6c10d13e37b2b3ecf069d4 (patch)
tree50a7bfd87153439907087d4b3529d622cfc75313 /sql/table.cc
parent9bba878b8c6b6abd9be97a9d5a6c89bda8762693 (diff)
downloadmariadb-git-c95d142f8f602b717c6c10d13e37b2b3ecf069d4.tar.gz
Add new user variables for tuning memory usage:
query_alloc_block_size, query_prealloc_size, range_alloc_block_size,transaction_alloc_block_size and transaction_prealloc_size Add more checks for "out of memory" detection in range optimization
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/table.cc b/sql/table.cc
index e938757cf6c..422202301f1 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -70,7 +70,7 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
outparam->db_stat = db_stat;
error=1;
- init_sql_alloc(&outparam->mem_root,1024,0);
+ init_sql_alloc(&outparam->mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
MEM_ROOT *old_root=my_pthread_getspecific_ptr(MEM_ROOT*,THR_MALLOC);
my_pthread_setspecific_ptr(THR_MALLOC,&outparam->mem_root);