1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Added support for ULONG division with DIV

Fixed non fatal memory leak in slave code.
This commit is contained in:
monty@narttu.mysql.fi
2003-03-19 21:23:13 +02:00
parent a916a03916
commit 48a9c1239c
12 changed files with 53 additions and 26 deletions

View File

@ -215,6 +215,21 @@ void THD::init(void)
total_warn_count= 0;
}
/*
Init THD for query processing
This has to be called once before we call mysql_parse()
*/
void THD::init_for_queries()
{
init_sql_alloc(&mem_root, MEM_ROOT_BLOCK_SIZE, MEM_ROOT_PREALLOC);
init_sql_alloc(&transaction.mem_root,
TRANS_MEM_ROOT_BLOCK_SIZE, TRANS_MEM_ROOT_PREALLOC);
}
/*
Do what's needed when one invokes change user