mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Merge MWL#180, binlog checksum backport, into MariaDB 5.3-based tree.
This commit is contained in:
@@ -11,16 +11,18 @@
|
||||
# Format_description_log_event length =
|
||||
# 19 /* event common header */ +
|
||||
# 57 /* misc stuff in the Format description header */ +
|
||||
# number of events.
|
||||
# number of events +
|
||||
# 1 /* Checksum algorithm */ +
|
||||
# 4 /* CRC32 length */
|
||||
#
|
||||
# With current number of events = 160,
|
||||
#
|
||||
# binlog_start_pos = 4 + 19 + 57 + 160 = 240.
|
||||
# binlog_start_pos = 4 + 19 + 57 + 160 + 1 + 4 = 245.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
let $binlog_start_pos=240;
|
||||
let $binlog_start_pos=245;
|
||||
--disable_query_log
|
||||
SET @binlog_start_pos=240;
|
||||
SET @binlog_start_pos=245;
|
||||
--enable_query_log
|
||||
|
||||
|
4
mysql-test/include/have_binlog_checksum_off.inc
Normal file
4
mysql-test/include/have_binlog_checksum_off.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
if (`select variable_value not like 'NONE' from information_schema.GLOBAL_VARIABLES
|
||||
where variable_name='binlog_checksum'`){
|
||||
skip Can not run the test when server activated checksumming;
|
||||
}
|
@@ -209,6 +209,9 @@ INSERT INTO global_suppressions VALUES
|
||||
("Slave I/O: Get master clock failed with error:.*"),
|
||||
("Slave I/O: Get master COLLATION_SERVER failed with error:.*"),
|
||||
("Slave I/O: Get master TIME_ZONE failed with error:.*"),
|
||||
("Slave I/O: The slave I/O thread stops because a fatal error is encountered when it tried to SET @master_binlog_checksum on master.*"),
|
||||
("Slave I/O: Get master BINLOG_CHECKSUM failed with error.*"),
|
||||
("Slave I/O: Notifying master by SET @master_binlog_checksum= @@global.binlog_checksum failed with error.*"),
|
||||
|
||||
("THE_LAST_SUPPRESSION")||
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
--let $binlog_start=240
|
||||
--let $binlog_start=245
|
||||
--replace_result $binlog_start <binlog_start>
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/
|
||||
|
Reference in New Issue
Block a user