mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into serg.mylan:/usr/home/serg/Abk/mysql-5.0 server-tools/instance-manager/mysql_connection.cc: Auto merged sql/sql_parse.cc: Auto merged
This commit is contained in:
@@ -33,18 +33,13 @@
|
||||
|
||||
|
||||
|
||||
C_MODE_START
|
||||
|
||||
pthread_handler_decl(guardian, arg)
|
||||
pthread_handler_t guardian(void *arg)
|
||||
{
|
||||
Guardian_thread *guardian_thread= (Guardian_thread *) arg;
|
||||
guardian_thread->run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
|
||||
Guardian_thread::Guardian_thread(Thread_registry &thread_registry_arg,
|
||||
Instance_map *instance_map_arg,
|
||||
uint monitoring_interval_arg) :
|
||||
|
||||
@@ -31,11 +31,7 @@ class Instance_map;
|
||||
class Thread_registry;
|
||||
struct GUARD_NODE;
|
||||
|
||||
C_MODE_START
|
||||
|
||||
pthread_handler_decl(guardian, arg);
|
||||
|
||||
C_MODE_END
|
||||
pthread_handler_t guardian(void *arg);
|
||||
|
||||
struct Guardian_thread_args
|
||||
{
|
||||
|
||||
@@ -43,8 +43,6 @@ typedef pid_t My_process_info;
|
||||
typedef PROCESS_INFORMATION My_process_info;
|
||||
#endif
|
||||
|
||||
C_MODE_START
|
||||
|
||||
/*
|
||||
Proxy thread is a simple way to avoid all pitfalls of the threads
|
||||
implementation in the OS (e.g. LinuxThreads). With such a thread we
|
||||
@@ -52,7 +50,7 @@ C_MODE_START
|
||||
to do it in a portable way.
|
||||
*/
|
||||
|
||||
pthread_handler_decl(proxy, arg)
|
||||
pthread_handler_t proxy(void *arg)
|
||||
{
|
||||
Instance *instance= (Instance *) arg;
|
||||
start_and_monitor_instance(&instance->options,
|
||||
@@ -60,9 +58,6 @@ pthread_handler_decl(proxy, arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
|
||||
/*
|
||||
Wait for an instance
|
||||
|
||||
|
||||
@@ -372,10 +372,7 @@ void Listener_thread::handle_new_mysql_connection(Vio *vio)
|
||||
}
|
||||
|
||||
|
||||
C_MODE_START
|
||||
|
||||
|
||||
pthread_handler_decl(listener, arg)
|
||||
pthread_handler_t listener(void *arg)
|
||||
{
|
||||
Listener_thread_args *args= (Listener_thread_args *) arg;
|
||||
Listener_thread listener(*args);
|
||||
@@ -387,6 +384,3 @@ pthread_handler_decl(listener, arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
C_MODE_END
|
||||
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
#include <my_pthread.h>
|
||||
|
||||
|
||||
C_MODE_START
|
||||
|
||||
pthread_handler_decl(listener, arg);
|
||||
|
||||
C_MODE_END
|
||||
pthread_handler_t listener(void *arg);
|
||||
|
||||
class Thread_registry;
|
||||
struct Options;
|
||||
|
||||
@@ -364,9 +364,7 @@ int Mysql_connection_thread::dispatch_command(enum enum_server_command command,
|
||||
}
|
||||
|
||||
|
||||
C_MODE_START
|
||||
|
||||
pthread_handler_decl(mysql_connection, arg)
|
||||
pthread_handler_t mysql_connection(void *arg)
|
||||
{
|
||||
Mysql_connection_thread_args *args= (Mysql_connection_thread_args *) arg;
|
||||
Mysql_connection_thread mysql_connection_thread(*args);
|
||||
@@ -381,9 +379,6 @@ pthread_handler_decl(mysql_connection, arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
|
||||
/*
|
||||
vim: fdm=marker
|
||||
*/
|
||||
|
||||
@@ -24,12 +24,7 @@
|
||||
#include <my_pthread.h>
|
||||
|
||||
|
||||
C_MODE_START
|
||||
|
||||
pthread_handler_decl(mysql_connection, arg);
|
||||
|
||||
C_MODE_END
|
||||
|
||||
pthread_handler_t mysql_connection(void *arg);
|
||||
|
||||
class Thread_registry;
|
||||
class User_map;
|
||||
|
||||
Reference in New Issue
Block a user