Enusure that my_global.h is included first
- Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
This commit is contained in:
parent
b0da8897b0
commit
4aaa38d26e
@ -19,7 +19,6 @@
|
|||||||
#ifndef _hash_h
|
#ifndef _hash_h
|
||||||
#define _hash_h
|
#define _hash_h
|
||||||
|
|
||||||
#include "my_global.h" /* uchar */
|
|
||||||
#include "my_sys.h" /* DYNAMIC_ARRAY */
|
#include "my_sys.h" /* DYNAMIC_ARRAY */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#define _m_ctype_h
|
#define _m_ctype_h
|
||||||
|
|
||||||
#include <my_attribute.h>
|
#include <my_attribute.h>
|
||||||
#include "my_global.h" /* uint16, uchar */
|
|
||||||
|
|
||||||
enum loglevel {
|
enum loglevel {
|
||||||
ERROR_LEVEL= 0,
|
ERROR_LEVEL= 0,
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#ifndef _m_string_h
|
#ifndef _m_string_h
|
||||||
#define _m_string_h
|
#define _m_string_h
|
||||||
|
|
||||||
#include "my_global.h" /* HAVE_* */
|
|
||||||
#include "my_decimal_limits.h"
|
#include "my_decimal_limits.h"
|
||||||
|
|
||||||
#ifndef __USE_GNU
|
#ifndef __USE_GNU
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#ifndef _my_base_h
|
#ifndef _my_base_h
|
||||||
#define _my_base_h
|
#define _my_base_h
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
#include <my_dir.h> /* This includes types */
|
#include <my_dir.h> /* This includes types */
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
#ifndef MY_BIT_INCLUDED
|
#ifndef MY_BIT_INCLUDED
|
||||||
#define MY_BIT_INCLUDED
|
#define MY_BIT_INCLUDED
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Some useful bit functions
|
Some useful bit functions
|
||||||
*/
|
*/
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
specific to a target compiler.
|
specific to a target compiler.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h> /* stddef.h offsetof */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Compiler-dependent internal convenience macros.
|
Compiler-dependent internal convenience macros.
|
||||||
*/
|
*/
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef MY_DIR_H
|
#ifndef MY_DIR_H
|
||||||
#define MY_DIR_H
|
#define MY_DIR_H
|
||||||
|
|
||||||
#include "my_global.h"
|
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
#ifndef _my_net_h
|
#ifndef _my_net_h
|
||||||
#define _my_net_h
|
#define _my_net_h
|
||||||
|
|
||||||
#include "my_global.h" /* C_MODE_START, C_MODE_END */
|
|
||||||
|
|
||||||
C_MODE_START
|
C_MODE_START
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
@ -19,8 +19,6 @@
|
|||||||
#ifndef _my_pthread_h
|
#ifndef _my_pthread_h
|
||||||
#define _my_pthread_h
|
#define _my_pthread_h
|
||||||
|
|
||||||
#include "my_global.h" /* myf */
|
|
||||||
|
|
||||||
#ifndef ETIME
|
#ifndef ETIME
|
||||||
#define ETIME ETIMEDOUT /* For FreeBSD */
|
#define ETIME ETIMEDOUT /* For FreeBSD */
|
||||||
#endif
|
#endif
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
#ifndef _my_stacktrace_h_
|
#ifndef _my_stacktrace_h_
|
||||||
#define _my_stacktrace_h_
|
#define _my_stacktrace_h_
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
#ifdef TARGET_OS_LINUX
|
#ifdef TARGET_OS_LINUX
|
||||||
#if defined (__x86_64__) || defined (__i386__) || \
|
#if defined (__x86_64__) || defined (__i386__) || \
|
||||||
(defined(__alpha__) && defined(__GNUC__))
|
(defined(__alpha__) && defined(__GNUC__))
|
||||||
|
@ -17,8 +17,6 @@
|
|||||||
#ifndef _my_sys_h
|
#ifndef _my_sys_h
|
||||||
#define _my_sys_h
|
#define _my_sys_h
|
||||||
|
|
||||||
#include "my_global.h" /* C_MODE_START, C_MODE_END */
|
|
||||||
|
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
|
|
||||||
C_MODE_START
|
C_MODE_START
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
#ifndef _my_time_h_
|
#ifndef _my_time_h_
|
||||||
#define _my_time_h_
|
#define _my_time_h_
|
||||||
#include "my_global.h"
|
|
||||||
#include "mysql_time.h"
|
#include "mysql_time.h"
|
||||||
#include "my_decimal_limits.h"
|
#include "my_decimal_limits.h"
|
||||||
|
|
||||||
|
@ -22,8 +22,6 @@
|
|||||||
#ifndef _my_user_h_
|
#ifndef _my_user_h_
|
||||||
#define _my_user_h_
|
#define _my_user_h_
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
C_MODE_START
|
C_MODE_START
|
||||||
|
|
||||||
int parse_user(const char *user_id_str, size_t user_id_len,
|
int parse_user(const char *user_id_str, size_t user_id_len,
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef MYSQL_FILE_H
|
#ifndef MYSQL_FILE_H
|
||||||
#define MYSQL_FILE_H
|
#define MYSQL_FILE_H
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
/* For strlen() */
|
/* For strlen() */
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
/* For MY_STAT */
|
/* For MY_STAT */
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef PASSWORD_INCLUDED
|
#ifndef PASSWORD_INCLUDED
|
||||||
#define PASSWORD_INCLUDED
|
#define PASSWORD_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h"
|
|
||||||
|
|
||||||
C_MODE_START
|
C_MODE_START
|
||||||
|
|
||||||
void my_make_scrambled_password_323(char *to, const char *password,
|
void my_make_scrambled_password_323(char *to, const char *password,
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
#ifndef _queues_h
|
#ifndef _queues_h
|
||||||
#define _queues_h
|
#define _queues_h
|
||||||
|
|
||||||
#include "my_global.h" /* uchar */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#ifndef _waiting_threads_h
|
#ifndef _waiting_threads_h
|
||||||
#define _waiting_threads_h
|
#define _waiting_threads_h
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
|
|
||||||
#include <lf.h>
|
#include <lf.h>
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#ifndef WQUEUE_INCLUDED
|
#ifndef WQUEUE_INCLUDED
|
||||||
#define WQUEUE_INCLUDED
|
#define WQUEUE_INCLUDED
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
#include <my_pthread.h>
|
#include <my_pthread.h>
|
||||||
|
|
||||||
/* info about requests in a waiting queue */
|
/* info about requests in a waiting queue */
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include "my_global.h" // HAVE_*
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
|
|
||||||
#ifdef HAVE_QUERY_CACHE
|
#ifdef HAVE_QUERY_CACHE
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
/**
|
/**
|
||||||
@brief retrieve last component of the filename.
|
@brief retrieve last component of the filename.
|
||||||
|
@ -172,6 +172,7 @@
|
|||||||
!! thread4 should not wait for thread2.
|
!! thread4 should not wait for thread2.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <waiting_threads.h>
|
#include <waiting_threads.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <wqueue.h>
|
#include <wqueue.h>
|
||||||
|
|
||||||
#define STRUCT_PTR(TYPE, MEMBER, a) \
|
#define STRUCT_PTR(TYPE, MEMBER, a) \
|
||||||
|
@ -31,13 +31,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
GSSAPI authentication plugin, client side
|
GSSAPI authentication plugin, client side
|
||||||
*/
|
*/
|
||||||
#include <string.h>
|
#include <my_global.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <mysqld_error.h>
|
#include <mysqld_error.h>
|
||||||
#include <mysql/client_plugin.h>
|
#include <mysql/client_plugin.h>
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
extern int auth_client(char *principal_name,
|
extern int auth_client(char *principal_name,
|
||||||
char *mech,
|
char *mech,
|
||||||
|
@ -26,9 +26,8 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <gssapi/gssapi.h>
|
#include <gssapi/gssapi.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <mysql/plugin_auth.h>
|
#include <mysql/plugin_auth.h>
|
||||||
#include <mysqld_error.h>
|
#include <mysqld_error.h>
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
|
@ -26,8 +26,10 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <gssapi.h>
|
#include <gssapi.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void gssapi_errmsg(OM_uint32 major, OM_uint32 minor, char *buf, size_t size)
|
void gssapi_errmsg(OM_uint32 major, OM_uint32 minor, char *buf, size_t size)
|
||||||
{
|
{
|
||||||
OM_uint32 message_context;
|
OM_uint32 message_context;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <gssapi/gssapi.h>
|
#include <gssapi/gssapi.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <mysql/plugin_auth.h>
|
#include <mysql/plugin_auth.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <mysqld_error.h>
|
#include <mysqld_error.h>
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
GSSAPI authentication plugin, server side
|
GSSAPI authentication plugin, server side
|
||||||
*/
|
*/
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <mysqld_error.h>
|
#include <mysqld_error.h>
|
||||||
#include <mysql/plugin_auth.h>
|
#include <mysql/plugin_auth.h>
|
||||||
|
@ -27,11 +27,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define SECURITY_WIN32
|
#define SECURITY_WIN32
|
||||||
|
#include <my_global.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <sspi.h>
|
#include <sspi.h>
|
||||||
#include <SecExt.h>
|
#include <SecExt.h>
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include <mysql/plugin_auth.h>
|
#include <mysql/plugin_auth.h>
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
@ -180,4 +179,4 @@ cleanup:
|
|||||||
FreeCredentialsHandle(&cred);
|
FreeCredentialsHandle(&cred);
|
||||||
free(out);
|
free(out);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdio.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define ERRSYM(x) {x, #x}
|
#define ERRSYM(x) {x, #x}
|
||||||
static struct {
|
static struct {
|
||||||
|
@ -26,6 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|||||||
POSSIBILITY OF SUCH DAMAGE.
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "sspi.h"
|
#include "sspi.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "server_plugin.h"
|
#include "server_plugin.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <mysql/plugin_password_validation.h>
|
#include <mysql/plugin_password_validation.h>
|
||||||
#include <crack.h>
|
#include <crack.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
#define MYSQL_SERVER 1
|
#define MYSQL_SERVER 1
|
||||||
|
#include <my_global.h>
|
||||||
#include <sql_class.h>
|
#include <sql_class.h>
|
||||||
|
|
||||||
namespace feedback {
|
namespace feedback {
|
||||||
|
@ -69,6 +69,7 @@ Example:
|
|||||||
openssl enc -aes-256-cbc -md sha1 -k "secret" -in keys.txt -out keys.enc
|
openssl enc -aes-256-cbc -md sha1 -k "secret" -in keys.txt -out keys.enc
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include <mysys_err.h>
|
#include <mysys_err.h>
|
||||||
|
@ -6,10 +6,7 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "database.hpp"
|
#include "database.hpp"
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -6,15 +6,11 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
||||||
#include "hstcpsvr.hpp"
|
#include "hstcpsvr.hpp"
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <list>
|
#include <list>
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
#define MYSQL_SERVER 1
|
#define MYSQL_SERVER 1
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <mysql_version.h>
|
#include <mysql_version.h>
|
||||||
|
|
||||||
#if MYSQL_VERSION_ID >= 50505
|
#if MYSQL_VERSION_ID >= 50505
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
#ifndef DENA_AUTO_ADDRINFO_HPP
|
#ifndef DENA_AUTO_ADDRINFO_HPP
|
||||||
#define DENA_AUTO_ADDRINFO_HPP
|
#define DENA_AUTO_ADDRINFO_HPP
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
#include "hstcpcli.hpp"
|
#include "hstcpcli.hpp"
|
||||||
|
@ -6,13 +6,10 @@
|
|||||||
* See COPYRIGHT.txt for details.
|
* See COPYRIGHT.txt for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <sql_class.h> // THD
|
#include <sql_class.h> // THD
|
||||||
#include <table.h> // ST_SCHEMA_TABLE
|
#include <table.h> // ST_SCHEMA_TABLE
|
||||||
#include <mysql/plugin.h>
|
#include <mysql/plugin.h>
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
#define MYSQL_SERVER 1
|
#define MYSQL_SERVER 1
|
||||||
#include "my_config.h"
|
#include <my_global.h>
|
||||||
#include "mysql_version.h"
|
#include "mysql_version.h"
|
||||||
#include "mysql/plugin.h"
|
#include "mysql/plugin.h"
|
||||||
#include "sql_class.h"
|
#include "sql_class.h"
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
#define MYSQL_SERVER
|
#define MYSQL_SERVER
|
||||||
|
#include <my_global.h>
|
||||||
#include <sql_class.h>
|
#include <sql_class.h>
|
||||||
#include <table.h>
|
#include <table.h>
|
||||||
#include <sql_show.h>
|
#include <sql_show.h>
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "semisync.h"
|
#include "semisync.h"
|
||||||
|
|
||||||
const unsigned char ReplSemiSyncBase::kPacketMagicNum = 0xef;
|
const unsigned char ReplSemiSyncBase::kPacketMagicNum = 0xef;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "semisync_master.h"
|
#include "semisync_master.h"
|
||||||
|
|
||||||
#define TIME_THOUSAND 1000
|
#define TIME_THOUSAND 1000
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "semisync_master.h"
|
#include "semisync_master.h"
|
||||||
#include "sql_class.h" // THD
|
#include "sql_class.h" // THD
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "semisync_slave.h"
|
#include "semisync_slave.h"
|
||||||
|
|
||||||
char rpl_semi_sync_slave_enabled;
|
char rpl_semi_sync_slave_enabled;
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include "semisync_slave.h"
|
#include "semisync_slave.h"
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
|
|
||||||
|
@ -20,10 +20,6 @@
|
|||||||
#define _my_thread_var loc_thread_var
|
#define _my_thread_var loc_thread_var
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_config.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <time.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
@ -75,6 +71,7 @@ static void closelog() {}
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MYSQL_DYNAMIC_PLUGIN) && !defined(MARIADB_ONLY)
|
#if !defined(MYSQL_DYNAMIC_PLUGIN) && !defined(MARIADB_ONLY)
|
||||||
|
#include <typelib.h>
|
||||||
#define MARIADB_ONLY
|
#define MARIADB_ONLY
|
||||||
#endif /*MYSQL_PLUGIN_DYNAMIC*/
|
#endif /*MYSQL_PLUGIN_DYNAMIC*/
|
||||||
|
|
||||||
@ -82,11 +79,12 @@ static void closelog() {}
|
|||||||
#define MYSQL_SERVICE_LOGGER_INCLUDED
|
#define MYSQL_SERVICE_LOGGER_INCLUDED
|
||||||
#endif /*MARIADB_ONLY*/
|
#endif /*MARIADB_ONLY*/
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_base.h>
|
#include <my_base.h>
|
||||||
//#include <my_dir.h>
|
|
||||||
#include <typelib.h>
|
#include <typelib.h>
|
||||||
#include <mysql/plugin.h>
|
#include <mysql/plugin.h>
|
||||||
#include <mysql/plugin_audit.h>
|
#include <mysql/plugin_audit.h>
|
||||||
|
#include <string.h>
|
||||||
#ifndef RTLD_DEFAULT
|
#ifndef RTLD_DEFAULT
|
||||||
#define RTLD_DEFAULT NULL
|
#define RTLD_DEFAULT NULL
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#define PLUGIN_CONTEXT
|
#define PLUGIN_CONTEXT
|
||||||
|
|
||||||
|
/* Can't use <my_global.h> as this includes plugin.h */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
typedef void *MYSQL_THD;
|
typedef void *MYSQL_THD;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <mysqld_error.h>
|
#include <mysqld_error.h>
|
||||||
#include <mysql/plugin_password_validation.h>
|
#include <mysql/plugin_password_validation.h>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
#define MYSQL_SERVER
|
#define MYSQL_SERVER
|
||||||
|
#include <my_global.h>
|
||||||
#include <sql_class.h>
|
#include <sql_class.h>
|
||||||
#include <table.h>
|
#include <table.h>
|
||||||
#include <sql_show.h>
|
#include <sql_show.h>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <mysql/plugin.h>
|
#include <mysql/plugin.h>
|
||||||
#include <mysql_version.h>
|
#include <mysql_version.h>
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#define MYSQL_SERVER
|
#define MYSQL_SERVER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_config.h>
|
#include <my_global.h>
|
||||||
#include <mysql/plugin.h>
|
#include <mysql/plugin.h>
|
||||||
#include <table.h> /* ST_SCHEMA_TABLE */
|
#include <table.h> /* ST_SCHEMA_TABLE */
|
||||||
#include <sql_show.h>
|
#include <sql_show.h>
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_time.h>
|
#include <my_time.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
#include <my_global.h>
|
||||||
#include <my_user.h>
|
#include <my_user.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
#include <mysql_com.h>
|
#include <mysql_com.h>
|
||||||
|
@ -16,9 +16,8 @@
|
|||||||
#ifndef BOUNDED_QUEUE_INCLUDED
|
#ifndef BOUNDED_QUEUE_INCLUDED
|
||||||
#define BOUNDED_QUEUE_INCLUDED
|
#define BOUNDED_QUEUE_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h"
|
|
||||||
#include "my_base.h"
|
#include "my_base.h"
|
||||||
#include "my_sys.h"
|
#include <my_sys.h>
|
||||||
#include "queues.h"
|
#include "queues.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include "my_global.h"
|
#include "mariadb.h"
|
||||||
#include "compat56.h"
|
#include "compat56.h"
|
||||||
#include "myisampack.h"
|
#include "myisampack.h"
|
||||||
#include "my_time.h"
|
#include "my_time.h"
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
Engine defined options of tables/fields/keys in CREATE/ALTER TABLE.
|
Engine defined options of tables/fields/keys in CREATE/ALTER TABLE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "mariadb.h"
|
||||||
#include "create_options.h"
|
#include "create_options.h"
|
||||||
#include <my_getopt.h>
|
#include <my_getopt.h>
|
||||||
#include "set_var.h"
|
#include "set_var.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "datadict.h"
|
#include "datadict.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "sql_class.h"
|
#include "sql_class.h"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
/* see include/mysql/service_debug_sync.h for debug sync documentation */
|
/* see include/mysql/service_debug_sync.h for debug sync documentation */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "debug_sync.h"
|
#include "debug_sync.h"
|
||||||
|
|
||||||
#if defined(ENABLED_DEBUG_SYNC)
|
#if defined(ENABLED_DEBUG_SYNC)
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
#pragma interface /* gcc class implementation */
|
#pragma interface /* gcc class implementation */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_global.h>
|
|
||||||
|
|
||||||
class THD;
|
class THD;
|
||||||
|
|
||||||
#if defined(ENABLED_DEBUG_SYNC)
|
#if defined(ENABLED_DEBUG_SYNC)
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
Read language depeneded messagefile
|
Read language depeneded messagefile
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "derror.h"
|
#include "derror.h"
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef DERROR_INCLUDED
|
#ifndef DERROR_INCLUDED
|
||||||
#define DERROR_INCLUDED
|
#define DERROR_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h" /* uint */
|
|
||||||
|
|
||||||
bool init_errmessage(void);
|
bool init_errmessage(void);
|
||||||
void free_error_messages();
|
void free_error_messages();
|
||||||
bool read_texts(const char *file_name, const char *language,
|
bool read_texts(const char *file_name, const char *language,
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h> // HAVE_*
|
#include "mariadb.h" // HAVE_*
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "des_key_file.h" // st_des_keyschedule, st_des_keyblock
|
#include "des_key_file.h" // st_des_keyschedule, st_des_keyblock
|
||||||
#include "log.h" // sql_print_error
|
#include "log.h" // sql_print_error
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
Functions for discover of frm file from handler
|
Functions for discover of frm file from handler
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "discover.h"
|
#include "discover.h"
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef DISCOVER_INCLUDED
|
#ifndef DISCOVER_INCLUDED
|
||||||
#define DISCOVER_INCLUDED
|
#define DISCOVER_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h" /* uchar */
|
|
||||||
|
|
||||||
int extension_based_table_discovery(MY_DIR *dirp, const char *ext,
|
int extension_based_table_discovery(MY_DIR *dirp, const char *ext,
|
||||||
handlerton::discovered_list *tl);
|
handlerton::discovered_list *tl);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include <mysql/plugin_encryption.h>
|
#include <mysql/plugin_encryption.h>
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "sql_plugin.h"
|
#include "sql_plugin.h"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#define MYSQL_LEX 1
|
#define MYSQL_LEX 1
|
||||||
#include <my_global.h> /* NO_EMBEDDED_ACCESS_CHECKS */
|
#include "mariadb.h" /* NO_EMBEDDED_ACCESS_CHECKS */
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "sql_parse.h" // parse_sql
|
#include "sql_parse.h" // parse_sql
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "sql_base.h" // close_thread_tables
|
#include "sql_base.h" // close_thread_tables
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "sp_head.h"
|
#include "sp_head.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program; if not, write to the Free Software Foundation,
|
||||||
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
|
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "event_queue.h"
|
#include "event_queue.h"
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "event_scheduler.h"
|
#include "event_scheduler.h"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "sql_parse.h" // check_access
|
#include "sql_parse.h" // check_access
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
#pragma implementation // gcc: Class implementation
|
#pragma implementation // gcc: Class implementation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "sql_select.h"
|
#include "sql_select.h"
|
||||||
#include "rpl_rli.h" // Pull in Relay_log_info
|
#include "rpl_rli.h" // Pull in Relay_log_info
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
gives much more speed.
|
gives much more speed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "sql_class.h" // THD
|
#include "sql_class.h" // THD
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Sorts a database
|
Sorts a database
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "filesort.h"
|
#include "filesort.h"
|
||||||
#ifdef HAVE_STDDEF_H
|
#ifdef HAVE_STDDEF_H
|
||||||
|
@ -13,11 +13,11 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
|
#include "mariadb.h"
|
||||||
#include "filesort_utils.h"
|
#include "filesort_utils.h"
|
||||||
#include "sql_const.h"
|
#include "sql_const.h"
|
||||||
#include "sql_sort.h"
|
#include "sql_sort.h"
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
#include "my_sys.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#ifndef FILESORT_UTILS_INCLUDED
|
#ifndef FILESORT_UTILS_INCLUDED
|
||||||
#define FILESORT_UTILS_INCLUDED
|
#define FILESORT_UTILS_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h"
|
|
||||||
#include "my_base.h"
|
#include "my_base.h"
|
||||||
#include "sql_array.h"
|
#include "sql_array.h"
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
#include <m_string.h>
|
#include <m_string.h>
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
|
|
||||||
#ifdef HAVE_SPATIAL
|
#ifdef HAVE_SPATIAL
|
||||||
|
|
||||||
|
@ -78,11 +78,9 @@ So, we can read full search-structure as 32-bit word
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define NO_YACC_SYMBOLS
|
#define NO_YACC_SYMBOLS
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "mysql_version.h"
|
#include "mysql_version.h"
|
||||||
#include "lex.h"
|
#include "lex.h"
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
|
#include <welcome_copyright_notice.h> /* ORACLE_WELCOME_COPYRIGHT_NOTICE */
|
||||||
|
@ -14,9 +14,7 @@
|
|||||||
along with this program; if not, write to the Free Software Foundation,
|
along with this program; if not, write to the Free Software Foundation,
|
||||||
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
|
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* We only need the tokens here */
|
/* We only need the tokens here */
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
upper level.
|
upper level.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "sql_select.h"
|
#include "sql_select.h"
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
NOTE: These functions assumes that the string is end \0 terminated!
|
NOTE: These functions assumes that the string is end \0 terminated!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "gstream.h"
|
#include "gstream.h"
|
||||||
#include "m_string.h" // LEX_STRING
|
#include "m_string.h" // LEX_STRING
|
||||||
|
@ -17,8 +17,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
||||||
|
|
||||||
|
|
||||||
#include "my_global.h" /* NULL, NullS */
|
#include <my_sys.h> /* MY_ALLOW_ZERO_PTR */
|
||||||
#include "my_sys.h" /* MY_ALLOW_ZERO_PTR */
|
|
||||||
#include "m_ctype.h" /* my_charset_latin1, my_charset_bin */
|
#include "m_ctype.h" /* my_charset_latin1, my_charset_bin */
|
||||||
|
|
||||||
class Gis_read_stream
|
class Gis_read_stream
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
if this file.
|
if this file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "sql_parse.h" // append_file_to_dir
|
#include "sql_parse.h" // append_file_to_dir
|
||||||
#include "create_options.h"
|
#include "create_options.h"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_list.h"
|
#include "sql_list.h"
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
#include "sql_sequence.h"
|
#include "sql_sequence.h"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
Handler-calling-functions
|
Handler-calling-functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h"
|
#include "unireg.h"
|
||||||
#include "rpl_handler.h"
|
#include "rpl_handler.h"
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#pragma interface /* gcc class implementation */
|
#pragma interface /* gcc class implementation */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_global.h> /* For handlers */
|
|
||||||
#include "sql_const.h"
|
#include "sql_const.h"
|
||||||
#include "sql_basic_types.h"
|
#include "sql_basic_types.h"
|
||||||
#include "mysqld.h" /* server_id */
|
#include "mysqld.h" /* server_id */
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#pragma implementation // gcc: Class implementation
|
#pragma implementation // gcc: Class implementation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "hash_filo.h"
|
#include "hash_filo.h"
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
Hostnames are checked with reverse name lookup and checked that they
|
Hostnames are checked with reverse name lookup and checked that they
|
||||||
doesn't resemble an IP address.
|
doesn't resemble an IP address.
|
||||||
*/
|
*/
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "unireg.h" // SPECIAL_NO_HOST_CACHE
|
#include "unireg.h" // SPECIAL_NO_HOST_CACHE
|
||||||
#include "hostname.h"
|
#include "hostname.h"
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
#ifndef HOSTNAME_INCLUDED
|
#ifndef HOSTNAME_INCLUDED
|
||||||
#define HOSTNAME_INCLUDED
|
#define HOSTNAME_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h" /* uint */
|
|
||||||
#include "my_net.h"
|
#include "my_net.h"
|
||||||
#include "hash_filo.h"
|
#include "hash_filo.h"
|
||||||
|
|
||||||
|
@ -21,10 +21,9 @@
|
|||||||
Init and dummy functions for interface with unireg
|
Init and dummy functions for interface with unireg
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include "init.h"
|
#include "init.h"
|
||||||
#include "my_sys.h"
|
|
||||||
#include "mysqld.h" // abort_loop, ...
|
#include "mysqld.h" // abort_loop, ...
|
||||||
#include "my_time.h" // my_init_time
|
#include "my_time.h" // my_init_time
|
||||||
#include "unireg.h" // SPECIAL_SAME_DB_NAME
|
#include "unireg.h" // SPECIAL_SAME_DB_NAME
|
||||||
|
@ -16,8 +16,6 @@
|
|||||||
#ifndef INIT_INCLUDED
|
#ifndef INIT_INCLUDED
|
||||||
#define INIT_INCLUDED
|
#define INIT_INCLUDED
|
||||||
|
|
||||||
#include "my_global.h" /* ulong */
|
|
||||||
|
|
||||||
void unireg_init(ulong options);
|
void unireg_init(ulong options);
|
||||||
void unireg_end(void) __attribute__((noreturn));
|
void unireg_end(void) __attribute__((noreturn));
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#ifdef USE_PRAGMA_IMPLEMENTATION
|
#ifdef USE_PRAGMA_IMPLEMENTATION
|
||||||
#pragma implementation // gcc: Class implementation
|
#pragma implementation // gcc: Class implementation
|
||||||
#endif
|
#endif
|
||||||
#include <my_global.h> /* NO_EMBEDDED_ACCESS_CHECKS */
|
#include "mariadb.h" /* NO_EMBEDDED_ACCESS_CHECKS */
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include <mysql.h>
|
#include <mysql.h>
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Buffers to save and compare item values
|
Buffers to save and compare item values
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
/*
|
/*
|
||||||
It is necessary to include set_var.h instead of item.h because there
|
It is necessary to include set_var.h instead of item.h because there
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#pragma implementation // gcc: Class implementation
|
#pragma implementation // gcc: Class implementation
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
#include "sql_select.h"
|
#include "sql_select.h"
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
Functions to create an item. Used by sql_yac.yy
|
Functions to create an item. Used by sql_yac.yy
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <my_global.h>
|
#include "mariadb.h"
|
||||||
#include "sql_priv.h"
|
#include "sql_priv.h"
|
||||||
/*
|
/*
|
||||||
It is necessary to include set_var.h instead of item.h because there
|
It is necessary to include set_var.h instead of item.h because there
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user