diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-09-27 20:09:46 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-09-27 20:09:46 +0200 |
commit | 474fe6d9d9e0b4d8803bdf439dd017ba0c729729 (patch) | |
tree | 6b088655217934bf0cbb6cdf85df0a217ef1d939 /include | |
parent | cd9f773020c6ddfc1ea39e9037e4258b8bc32a08 (diff) | |
download | mariadb-git-474fe6d9d9e0b4d8803bdf439dd017ba0c729729.tar.gz |
fixes for test failures
and small collateral changes
mysql-test/lib/My/Test.pm:
somehow with "print" we get truncated writes sometimes
mysql-test/suite/perfschema/r/digest_table_full.result:
md5 hashes of statement digests differ, because yacc token codes are different in mariadb
mysql-test/suite/perfschema/r/dml_handler.result:
host table is not ported over yet
mysql-test/suite/perfschema/r/information_schema.result:
host table is not ported over yet
mysql-test/suite/perfschema/r/nesting.result:
this differs, because we don't rewrite general log queries, and multi-statement
packets are logged as a one entry. this result file is identical to what mysql-5.6.5
produces with the --log-raw option.
mysql-test/suite/perfschema/r/relaylog.result:
MariaDB modifies the binlog index file directly, while MySQL 5.6 has a feature "crash-safe binlog index" and modifies a special "crash-safe" shadow copy of the index file and then moves it over. That's why this test shows "NONE" index file writes in MySQL and "MANY" in MariaDB.
mysql-test/suite/perfschema/r/server_init.result:
MariaDB initializes the "manager" resources from the "manager" thread, and starts this thread only when --flush-time is not 0. MySQL 5.6 initializes "manager" resources unconditionally on server startup.
mysql-test/suite/perfschema/r/stage_mdl_global.result:
this differs, because MariaDB disables query cache when query_cache_size=0. MySQL does not
do that, and this causes useless mutex locks and waits.
mysql-test/suite/perfschema/r/statement_digest.result:
md5 hashes of statement digests differ, because yacc token codes are different in mariadb
mysql-test/suite/perfschema/r/statement_digest_consumers.result:
md5 hashes of statement digests differ, because yacc token codes are different in mariadb
mysql-test/suite/perfschema/r/statement_digest_long_query.result:
md5 hashes of statement digests differ, because yacc token codes are different in mariadb
mysql-test/suite/rpl/r/rpl_mixed_drop_create_temp_table.result:
will be updated to match 5.6 when alfranio.correia@oracle.com-20110512172919-c1b5kmum4h52g0ni and anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y are merged
mysql-test/suite/rpl/r/rpl_non_direct_mixed_mixing_engines.result:
will be updated to match 5.6 when anders.song@greatopensource.com-20110105052107-zoab0bsf5a6xxk2y is merged
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 3 | ||||
-rw-r--r-- | include/my_sys.h | 6 | ||||
-rw-r--r-- | include/mysql.h | 6 | ||||
-rw-r--r-- | include/mysql/psi/psi_abi_v0.h | 2 | ||||
-rw-r--r-- | include/mysql/psi/psi_abi_v2.h | 2 | ||||
-rw-r--r-- | include/mysql/service_debug_sync.h | 6 | ||||
-rw-r--r-- | include/mysql_com.h | 4 |
7 files changed, 10 insertions, 19 deletions
diff --git a/include/my_global.h b/include/my_global.h index 12a93bd7712..a6d3a595d3e 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -16,8 +16,7 @@ /* This is the include file that should be included 'first' in every C file. */ -#ifndef _global_h -#define _global_h +#ifndef MY_GLOBAL_INCLUDED #define MY_GLOBAL_INCLUDED /* Client library users on Windows need this macro defined here. */ diff --git a/include/my_sys.h b/include/my_sys.h index d6ed4f29e72..f4f41b3b108 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -206,8 +206,8 @@ extern void (*fatal_error_handler_hook)(uint my_err, const char *str, extern uint my_file_limit; extern ulonglong my_thread_stack_size; -extern const char *(*proc_info_hook)(MYSQL_THD, const char *, const char *, - const char *, const unsigned int); +extern void (*proc_info_hook)(void *, const PSI_stage_info *, PSI_stage_info *, + const char *, const char *, const unsigned int); #ifdef HAVE_LARGE_PAGES extern my_bool my_use_large_pages; @@ -252,9 +252,7 @@ extern const char *my_defaults_extra_file; extern const char *my_defaults_group_suffix; extern const char *my_defaults_file; -#ifndef timed_mutexes extern my_bool timed_mutexes; -#endif enum loglevel { ERROR_LEVEL, diff --git a/include/mysql.h b/include/mysql.h index 4144b6c1ca4..6bbcdd96482 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -43,7 +43,7 @@ extern "C" { #endif -#ifndef _global_h /* If not standard header */ +#ifndef MY_GLOBAL_INCLUDED /* If not standard header */ #ifndef MYSQL_ABI_CHECK #include <sys/types.h> #endif @@ -67,7 +67,7 @@ typedef char my_bool; typedef int my_socket; #endif /* __WIN__ */ #endif /* my_socket_defined */ -#endif /* _global_h */ +#endif /* MY_GLOBAL_INCLUDED */ #include "mysql_version.h" #include "mysql_com.h" @@ -119,7 +119,7 @@ typedef struct st_mysql_field { typedef char **MYSQL_ROW; /* return data as array of strings */ typedef unsigned int MYSQL_FIELD_OFFSET; /* offset to current field */ -#ifndef _global_h +#ifndef MY_GLOBAL_INCLUDED #if defined(NO_CLIENT_LONG_LONG) typedef unsigned long my_ulonglong; #elif defined (__WIN__) diff --git a/include/mysql/psi/psi_abi_v0.h b/include/mysql/psi/psi_abi_v0.h index 7444cb0b276..c896f15a532 100644 --- a/include/mysql/psi/psi_abi_v0.h +++ b/include/mysql/psi/psi_abi_v0.h @@ -19,6 +19,6 @@ This file is only used to automate detection of changes between versions. Do not include this file, include mysql/psi/psi.h instead. */ -#define _global_h +#define MY_GLOBAL_INCLUDED #include "mysql/psi/psi.h" diff --git a/include/mysql/psi/psi_abi_v2.h b/include/mysql/psi/psi_abi_v2.h index 08bca609b41..d2e6f2527b0 100644 --- a/include/mysql/psi/psi_abi_v2.h +++ b/include/mysql/psi/psi_abi_v2.h @@ -21,6 +21,6 @@ */ #define USE_PSI_2 #define HAVE_PSI_INTERFACE -#define _global_h +#define MY_GLOBAL_INCLUDED #include "mysql/psi/psi.h" diff --git a/include/mysql/service_debug_sync.h b/include/mysql/service_debug_sync.h index 55615b8f198..bb1202c5e63 100644 --- a/include/mysql/service_debug_sync.h +++ b/include/mysql/service_debug_sync.h @@ -339,14 +339,8 @@ extern void (*debug_sync_C_callback_ptr)(MYSQL_THD, const char *, size_t); if (debug_sync_service) \ debug_sync_service(thd, STRING_WITH_LEN(name)); \ } while(0) -#define DEBUG_SYNC_C_IF_THD(thd, name) \ - do { \ - if (debug_sync_service && thd) \ - (*debug_sync_service)(thd, STRING_WITH_LEN(name)); } \ - while(0) #else #define DEBUG_SYNC(thd,name) do { } while(0) -#define DEBUG_SYNC_C_IF_THD(thd, name) do { } while(0) #endif /* compatibility macro */ diff --git a/include/mysql_com.h b/include/mysql_com.h index 375de933b64..c5fd2d84425 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -488,7 +488,7 @@ my_bool net_write_command(NET *net,unsigned char command, int net_real_write(NET *net,const unsigned char *packet, size_t len); unsigned long my_net_read(NET *net); -#ifdef _global_h +#ifdef MY_GLOBAL_INCLUDED void my_net_set_write_timeout(NET *net, uint timeout); void my_net_set_read_timeout(NET *net, uint timeout); #endif @@ -583,7 +583,7 @@ const char *mysql_errno_to_sqlstate(unsigned int mysql_errno); my_bool my_thread_init(void); void my_thread_end(void); -#ifdef _global_h +#ifdef MY_GLOBAL_INCLUDED ulong STDCALL net_field_length(uchar **packet); my_ulonglong net_field_length_ll(uchar **packet); uchar *net_store_length(uchar *pkg, ulonglong length); |