mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 5.1-bugteam -> 5.1-innodb_plugin.
This commit is contained in:
@ -507,7 +507,8 @@ ulong slave_net_timeout, slave_trans_retries;
|
||||
ulong slave_exec_mode_options;
|
||||
const char *slave_exec_mode_str= "STRICT";
|
||||
ulong thread_cache_size=0, thread_pool_size= 0;
|
||||
ulong binlog_cache_size=0, max_binlog_cache_size=0;
|
||||
ulong binlog_cache_size=0;
|
||||
ulonglong max_binlog_cache_size=0;
|
||||
ulong query_cache_size=0;
|
||||
ulong refresh_version; /* Increments on each reload */
|
||||
query_id_t global_query_id;
|
||||
@ -982,6 +983,7 @@ static void close_connections(void)
|
||||
}
|
||||
(void) pthread_mutex_unlock(&LOCK_thread_count);
|
||||
|
||||
close_active_mi();
|
||||
DBUG_PRINT("quit",("close_connections thread"));
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
@ -1663,7 +1665,6 @@ static void network_init(void)
|
||||
opt_enable_named_pipe)
|
||||
{
|
||||
|
||||
pipe_name[sizeof(pipe_name)-1]= 0; /* Safety if too long string */
|
||||
strxnmov(pipe_name, sizeof(pipe_name)-1, "\\\\.\\pipe\\",
|
||||
mysqld_unix_port, NullS);
|
||||
bzero((char*) &saPipeSecurity, sizeof(saPipeSecurity));
|
||||
@ -4779,8 +4780,9 @@ void handle_connection_in_main_thread(THD *thd)
|
||||
safe_mutex_assert_owner(&LOCK_thread_count);
|
||||
thread_cache_size=0; // Safety
|
||||
threads.append(thd);
|
||||
(void) pthread_mutex_unlock(&LOCK_thread_count);
|
||||
handle_one_connection((void*) thd);
|
||||
pthread_mutex_unlock(&LOCK_thread_count);
|
||||
thd->start_utime= my_micro_time();
|
||||
handle_one_connection(thd);
|
||||
}
|
||||
|
||||
|
||||
@ -4805,7 +4807,7 @@ void create_thread_to_handle_connection(THD *thd)
|
||||
thread_created++;
|
||||
threads.append(thd);
|
||||
DBUG_PRINT("info",(("creating thread %lu"), thd->thread_id));
|
||||
thd->connect_utime= thd->start_utime= my_micro_time();
|
||||
thd->prior_thr_create_utime= thd->start_utime= my_micro_time();
|
||||
if ((error=pthread_create(&thd->real_id,&connection_attrib,
|
||||
handle_one_connection,
|
||||
(void*) thd)))
|
||||
@ -6582,7 +6584,7 @@ log and this option does nothing anymore.",
|
||||
{"max_binlog_cache_size", OPT_MAX_BINLOG_CACHE_SIZE,
|
||||
"Can be used to restrict the total size used to cache a multi-transaction query.",
|
||||
(uchar**) &max_binlog_cache_size, (uchar**) &max_binlog_cache_size, 0,
|
||||
GET_ULONG, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONG_MAX, 0, IO_SIZE, 0},
|
||||
GET_ULL, REQUIRED_ARG, ULONG_MAX, IO_SIZE, ULONGLONG_MAX, 0, IO_SIZE, 0},
|
||||
{"max_binlog_size", OPT_MAX_BINLOG_SIZE,
|
||||
"Binary log will be rotated automatically when the size exceeds this \
|
||||
value. Will also apply to relay logs if max_relay_log_size is 0. \
|
||||
|
Reference in New Issue
Block a user