mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/kostja/mysql/mysql-5.0-root
This commit is contained in:
@@ -151,9 +151,6 @@ THD::THD():user_time(0), is_fatal_error(0),
|
|||||||
init();
|
init();
|
||||||
/* Initialize sub structures */
|
/* Initialize sub structures */
|
||||||
bzero((char*) &mem_root,sizeof(mem_root));
|
bzero((char*) &mem_root,sizeof(mem_root));
|
||||||
bzero((char*) &transaction.mem_root,sizeof(transaction.mem_root));
|
|
||||||
bzero((char*) &con_root,sizeof(con_root));
|
|
||||||
bzero((char*) &warn_root,sizeof(warn_root));
|
|
||||||
init_alloc_root(&warn_root, WARN_ALLOC_BLOCK_SIZE, WARN_ALLOC_PREALLOC_SIZE);
|
init_alloc_root(&warn_root, WARN_ALLOC_BLOCK_SIZE, WARN_ALLOC_PREALLOC_SIZE);
|
||||||
user_connect=(USER_CONN *)0;
|
user_connect=(USER_CONN *)0;
|
||||||
hash_init(&user_vars, system_charset_info, USER_VARS_HASH_SIZE, 0, 0,
|
hash_init(&user_vars, system_charset_info, USER_VARS_HASH_SIZE, 0, 0,
|
||||||
@@ -355,7 +352,6 @@ THD::~THD()
|
|||||||
safeFree(db);
|
safeFree(db);
|
||||||
safeFree(ip);
|
safeFree(ip);
|
||||||
free_root(&mem_root,MYF(0));
|
free_root(&mem_root,MYF(0));
|
||||||
free_root(&con_root,MYF(0));
|
|
||||||
free_root(&warn_root,MYF(0));
|
free_root(&warn_root,MYF(0));
|
||||||
free_root(&transaction.mem_root,MYF(0));
|
free_root(&transaction.mem_root,MYF(0));
|
||||||
mysys_var=0; // Safety (shouldn't be needed)
|
mysys_var=0; // Safety (shouldn't be needed)
|
||||||
|
@@ -452,7 +452,6 @@ public:
|
|||||||
LEX main_lex;
|
LEX main_lex;
|
||||||
LEX *lex; // parse tree descriptor
|
LEX *lex; // parse tree descriptor
|
||||||
MEM_ROOT mem_root; // 1 command-life memory pool
|
MEM_ROOT mem_root; // 1 command-life memory pool
|
||||||
MEM_ROOT con_root; // connection-life memory
|
|
||||||
MEM_ROOT warn_root; // For warnings and errors
|
MEM_ROOT warn_root; // For warnings and errors
|
||||||
Protocol *protocol; // Current protocol
|
Protocol *protocol; // Current protocol
|
||||||
Protocol_simple protocol_simple; // Normal protocol
|
Protocol_simple protocol_simple; // Normal protocol
|
||||||
|
@@ -957,7 +957,6 @@ pthread_handler_decl(handle_one_connection,arg)
|
|||||||
}
|
}
|
||||||
if (thd->user_connect)
|
if (thd->user_connect)
|
||||||
decrease_user_connections(thd->user_connect);
|
decrease_user_connections(thd->user_connect);
|
||||||
free_root(&thd->mem_root,MYF(0));
|
|
||||||
if (net->error && net->vio != 0 && net->report_error)
|
if (net->error && net->vio != 0 && net->report_error)
|
||||||
{
|
{
|
||||||
if (!thd->killed && thd->variables.log_warnings)
|
if (!thd->killed && thd->variables.log_warnings)
|
||||||
@@ -1537,8 +1536,6 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
#endif
|
#endif
|
||||||
close_connection(thd, 0, 1);
|
close_connection(thd, 0, 1);
|
||||||
close_thread_tables(thd); // Free before kill
|
close_thread_tables(thd); // Free before kill
|
||||||
free_root(&thd->mem_root,MYF(0));
|
|
||||||
free_root(&thd->transaction.mem_root,MYF(0));
|
|
||||||
kill_mysql();
|
kill_mysql();
|
||||||
error=TRUE;
|
error=TRUE;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user