00001 #ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PRIV_H 00002 #define INCLUDES_MYSQL_INSTANCE_MANAGER_PRIV_H 00003 /* Copyright (C) 2003 MySQL AB & MySQL Finland AB & TCX DataKonsult AB 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00018 00019 #include <my_global.h> 00020 #include <m_string.h> 00021 #include <my_pthread.h> 00022 00023 #include <sys/types.h> 00024 00025 #ifndef __WIN__ 00026 #include <unistd.h> 00027 #endif 00028 00029 #include "portability.h" 00030 00031 /* IM-wide platform-independent defines */ 00032 #define SERVER_DEFAULT_PORT 3306 00033 #define DEFAULT_MONITORING_INTERVAL 20 00034 #define DEFAULT_PORT 2273 00035 /* three-week timeout should be enough */ 00036 #define LONG_TIMEOUT ((ulong) 3600L*24L*21L) 00037 00038 const int MEM_ROOT_BLOCK_SIZE= 512; 00039 00040 /* The maximal length of option name and option value. */ 00041 const int MAX_OPTION_LEN= 1024; 00042 00043 /* 00044 The maximal length of whole option string: 00045 --<option name>=<option value> 00046 */ 00047 const int MAX_OPTION_STR_LEN= 2 + MAX_OPTION_LEN + 1 + MAX_OPTION_LEN + 1; 00048 00049 const int MAX_VERSION_LENGTH= 160; 00050 00051 const int MAX_INSTANCE_NAME_SIZE= FN_REFLEN; 00052 00053 /* the pid of the manager process (of the signal thread on the LinuxThreads) */ 00054 extern pid_t manager_pid; 00055 00056 #ifndef __WIN__ 00057 /* 00058 This flag is set if mysqlmanager has detected that it is running on the 00059 system using LinuxThreads 00060 */ 00061 extern bool linuxthreads; 00062 #endif 00063 00064 extern const LEX_STRING mysqlmanager_version; 00065 00066 /* MySQL client-server protocol version: substituted from configure */ 00067 extern const unsigned char protocol_version; 00068 00069 /* 00070 These variables are used in MySQL subsystem to work with mysql clients 00071 To be moved to a config file/options one day. 00072 */ 00073 00074 00075 /* Buffer length for TCP/IP and socket communication */ 00076 extern unsigned long net_buffer_length; 00077 00078 00079 /* Maximum allowed incoming/ougoung packet length */ 00080 extern unsigned long max_allowed_packet; 00081 00082 00083 /* 00084 Number of seconds to wait for more data from a connection before aborting 00085 the read 00086 */ 00087 extern unsigned long net_read_timeout; 00088 00089 00090 /* 00091 Number of seconds to wait for a block to be written to a connection 00092 before aborting the write. 00093 */ 00094 extern unsigned long net_write_timeout; 00095 00096 00097 /* 00098 If a read on a communication port is interrupted, retry this many times 00099 before giving up. 00100 */ 00101 extern unsigned long net_retry_count; 00102 00103 extern unsigned int test_flags; 00104 extern unsigned long bytes_sent, bytes_received; 00105 extern unsigned long mysqld_net_retry_count; 00106 extern unsigned long open_files_limit; 00107 00108 00109 int set_stacksize_n_create_thread(pthread_t *thread, pthread_attr_t *attr, 00110 void *(*start_routine)(void *), void *arg); 00111 00112 #endif // INCLUDES_MYSQL_INSTANCE_MANAGER_PRIV_H
1.4.7

