mirror of
https://github.com/MariaDB/server.git
synced 2025-01-25 08:14:18 +01:00
MDEV-7850: Extend GTID Binlog Events with Thread Id
This patch augments Gtid_log_event with the user thread-id. In particular that compensates for the loss of this info in Rows_log_events. Gtid_log_event::thread_id gets visible in mysqlbinlog output like #231025 16:21:45 server id 1 end_log_pos 537 CRC32 0x1cf1d963 GTID 0-1-2 ddl thread_id=10 as a 32 bit unsigned integer. Note this is a 32-bit value, as the connection id can only be 32 bits (see MDEV-15089 for details). While the size of Gtid event has grown by 4 bytes replication from OLD <-> NEW is not affected by it. This patch also slightly changes the logic to convert Gtid events to Query events for older replicas which don't support Gtid. Instead of hard-coding the padding of the sys var section of the generated Query event, the length to pad is dynamically calculated based on the length of the Gtid event. This work was started by the late Sujatha Sivakumar. Brandon Nesterenko took it over, reviewed initial patches and extended the work. Also thanks to Andrei for his help in finalizing the fixes for MDEV-33924, which were squashed into this patch. Reviewed-by: ============= Andrei Elkin <andrei.elkin@mariadb.com> Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
parent
f151c5f389
commit
e4afa61053
28 changed files with 1072 additions and 769 deletions
mysql-test
include
main
mysqlbinlog_row_compressed.resultmysqlbinlog_row_compressed.testmysqlbinlog_row_minimal.resultmysqlbinlog_row_minimal.testmysqlbinlog_stmt_compressed.resultmysqlbinlog_stmt_compressed.test
suite
binlog/r
binlog_mysqlbinlog_row.resultbinlog_mysqlbinlog_row_innodb.resultbinlog_mysqlbinlog_row_myisam.resultbinlog_mysqlbinlog_row_trans.resultbinlog_parallel_replication_marks_row.resultbinlog_parallel_replication_marks_stm_mix.resultbinlog_row_annotate.resultbinlog_row_ctype_ucs.resultbinlog_row_mysqlbinlog_options.resultbinlog_stm_ctype_ucs.resultflashback.result
binlog_encryption
innodb/t
rpl
sql
|
@ -80,6 +80,7 @@ while (<F>) {
|
|||
s/table id \d+/table id #/;
|
||||
s/mapped to number \d+/mapped to number #/;
|
||||
s/CRC32 0x[0-9a-f]+/CRC32 0x########/;
|
||||
s/thread_id=\d+/thread_id=#/;
|
||||
print if /\b(GTID|START TRANSACTION|COMMIT|Table_map|Write_rows|Update_rows|Delete_rows|generated by server|40005 TEMPORARY)\b/;
|
||||
}
|
||||
close F;
|
||||
|
|
|
@ -16,23 +16,23 @@ FLUSH BINARY LOGS;
|
|||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
# at 4
|
||||
#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Start: xxx
|
||||
ROLLBACK/*!*/;
|
||||
# at 256
|
||||
#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Gtid list []
|
||||
# at 285
|
||||
#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at 329
|
||||
#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=TID
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
|
||||
# at 371
|
||||
#<date> server id 1 end_log_pos 542 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
use `test`/*!*/;
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
SET @@session.pseudo_thread_id=5/*!*/;
|
||||
SET @@session.pseudo_thread_id=TID/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1, @@session.sql_if_exists=0, @@session.explicit_defaults_for_timestamp=1, @@session.system_versioning_insert_history=0/*!*/;
|
||||
SET @@session.sql_mode=#/*!*/;
|
||||
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
||||
|
@ -43,25 +43,25 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 542
|
||||
#<date> server id 1 end_log_pos 584 CRC32 XXX GTID 0-1-2 ddl
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at 584
|
||||
#<date> server id 1 end_log_pos 745 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 745
|
||||
#<date> server id 1 end_log_pos 787 CRC32 XXX GTID 0-1-3
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 787
|
||||
# at 861
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 917
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -75,22 +75,22 @@ START TRANSACTION
|
|||
### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 985
|
||||
#<date> server id 1 end_log_pos 1058 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1058
|
||||
#<date> server id 1 end_log_pos 1100 CRC32 XXX GTID 0-1-4
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1100
|
||||
# at 1176
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1232
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=11 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -104,22 +104,22 @@ START TRANSACTION
|
|||
### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
|
||||
# Number of rows: 1
|
||||
# at 1299
|
||||
#<date> server id 1 end_log_pos 1372 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1372
|
||||
#<date> server id 1 end_log_pos 1414 CRC32 XXX GTID 0-1-5
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1414
|
||||
# at 1492
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1548
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=12 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -133,22 +133,22 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 1614
|
||||
#<date> server id 1 end_log_pos 1687 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1687
|
||||
#<date> server id 1 end_log_pos 1729 CRC32 XXX GTID 0-1-6
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1729
|
||||
# at 1804
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1860
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_compressed_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -162,22 +162,22 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 1927
|
||||
#<date> server id 1 end_log_pos 2000 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2000
|
||||
#<date> server id 1 end_log_pos 2042 CRC32 XXX GTID 0-1-7
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2042
|
||||
# at 2096
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t2 SELECT * FROM t1
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 2152
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_compressed_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_compressed_rows: table id 33 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t2`
|
||||
### SET
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -224,22 +224,22 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 2243
|
||||
#<date> server id 1 end_log_pos 2316 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2316
|
||||
#<date> server id 1 end_log_pos 2358 CRC32 XXX GTID 0-1-8
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2358
|
||||
# at 2424
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 2480
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Update_compressed_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Update_compressed_rows: table id 33 flags: STMT_END_F
|
||||
### UPDATE `test`.`t2`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -305,22 +305,22 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 3
|
||||
# at 2579
|
||||
#<date> server id 1 end_log_pos 2652 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2652
|
||||
#<date> server id 1 end_log_pos 2694 CRC32 XXX GTID 0-1-9
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2694
|
||||
# at 2731
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> DELETE FROM t1
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 2787
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Delete_compressed_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Delete_compressed_rows: table id 32 flags: STMT_END_F
|
||||
### DELETE FROM `test`.`t1`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -367,22 +367,22 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 2879
|
||||
#<date> server id 1 end_log_pos 2952 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2952
|
||||
#<date> server id 1 end_log_pos 2994 CRC32 XXX GTID 0-1-10
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2994
|
||||
# at 3031
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> DELETE FROM t2
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 3087
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Delete_compressed_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Delete_compressed_rows: table id 33 flags: STMT_END_F
|
||||
### DELETE FROM `test`.`t2`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -429,12 +429,12 @@ START TRANSACTION
|
|||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 3172
|
||||
#<date> server id 1 end_log_pos 3245 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 3245
|
||||
#<date> server id 1 end_log_pos 3293 CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
DELIMITER ;
|
||||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
|
|
|
@ -30,7 +30,7 @@ DELETE FROM t2;
|
|||
|
||||
FLUSH BINARY LOGS;
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/ /thread_id=\d*/thread_id=TID/ /end_log_pos [0-9]*/end_log_pos #/
|
||||
--exec $MYSQL_BINLOG --verbose --verbose --base64-output=DECODE-ROWS $datadir/$binlog
|
||||
|
||||
--echo
|
||||
|
|
|
@ -13,24 +13,24 @@ FLUSH BINARY LOGS;
|
|||
/*!40019 SET @@session.max_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
# at 4
|
||||
#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Start: xxx
|
||||
ROLLBACK/*!*/;
|
||||
# at 256
|
||||
#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
|
||||
# at 285
|
||||
#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at 329
|
||||
#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Gtid list []
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=TID
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
|
||||
# at 371
|
||||
#<date> server id 1 end_log_pos 564 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
use `test`/*!*/;
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
SET @@session.pseudo_thread_id=5/*!*/;
|
||||
SET @@session.pseudo_thread_id=TID/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1, @@session.sql_if_exists=0, @@session.explicit_defaults_for_timestamp=1, @@session.system_versioning_insert_history=0/*!*/;
|
||||
SET @@session.sql_mode=#/*!*/;
|
||||
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
||||
|
@ -40,26 +40,26 @@ SET @@session.lc_time_names=0/*!*/;
|
|||
SET @@session.collation_database=DEFAULT/*!*/;
|
||||
CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 564
|
||||
#<date> server id 1 end_log_pos 606 CRC32 XXX GTID 0-1-2 ddl
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at 606
|
||||
#<date> server id 1 end_log_pos 792 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 792
|
||||
#<date> server id 1 end_log_pos 834 CRC32 XXX GTID 0-1-3
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 834
|
||||
# at 908
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 964
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -72,23 +72,23 @@ START TRANSACTION
|
|||
### @8=7 /* INT meta=0 nullable=1 is_null=0 */
|
||||
### @9='' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 1033
|
||||
#<date> server id 1 end_log_pos 1106 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1106
|
||||
#<date> server id 1 end_log_pos 1148 CRC32 XXX GTID 0-1-4
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1148
|
||||
# at 1224
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1280
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=11 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -101,23 +101,23 @@ START TRANSACTION
|
|||
### @8=7 /* INT meta=0 nullable=1 is_null=0 */
|
||||
### @9=NULL /* STRING(1) meta=65025 nullable=1 is_null=1 */
|
||||
# Number of rows: 1
|
||||
# at 1348
|
||||
#<date> server id 1 end_log_pos 1421 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1421
|
||||
#<date> server id 1 end_log_pos 1463 CRC32 XXX GTID 0-1-5
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1463
|
||||
# at 1541
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1597
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=12 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -130,23 +130,23 @@ START TRANSACTION
|
|||
### @8=7 /* INT meta=0 nullable=1 is_null=0 */
|
||||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 1664
|
||||
#<date> server id 1 end_log_pos 1737 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1737
|
||||
#<date> server id 1 end_log_pos 1779 CRC32 XXX GTID 0-1-6
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1779
|
||||
# at 1854
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 1910
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_rows: table id 32 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t1`
|
||||
### SET
|
||||
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -159,23 +159,23 @@ START TRANSACTION
|
|||
### @8=7 /* INT meta=0 nullable=1 is_null=0 */
|
||||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 1
|
||||
# at 1980
|
||||
#<date> server id 1 end_log_pos 2053 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2053
|
||||
#<date> server id 1 end_log_pos 2095 CRC32 XXX GTID 0-1-7
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2095
|
||||
# at 2149
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> INSERT INTO t2 SELECT * FROM t1
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 2205
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Write_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Write_rows: table id 33 flags: STMT_END_F
|
||||
### INSERT INTO `test`.`t2`
|
||||
### SET
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -221,23 +221,23 @@ START TRANSACTION
|
|||
### @8=7 /* INT meta=0 nullable=1 is_null=0 */
|
||||
### @9='A' /* STRING(1) meta=65025 nullable=1 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 2372
|
||||
#<date> server id 1 end_log_pos 2445 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2445
|
||||
#<date> server id 1 end_log_pos 2487 CRC32 XXX GTID 0-1-8
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2487
|
||||
# at 2553
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 2609
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Update_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Update_rows: table id 33 flags: STMT_END_F
|
||||
### UPDATE `test`.`t2`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -254,23 +254,23 @@ START TRANSACTION
|
|||
### SET
|
||||
### @5=5 /* INT meta=0 nullable=1 is_null=0 */
|
||||
# Number of rows: 3
|
||||
# at 2675
|
||||
#<date> server id 1 end_log_pos 2748 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2748
|
||||
#<date> server id 1 end_log_pos 2790 CRC32 XXX GTID 0-1-9
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2790
|
||||
# at 2827
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> DELETE FROM t1
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at 2883
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Delete_rows: table id 32 flags: STMT_END_F
|
||||
### DELETE FROM `test`.`t1`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -284,23 +284,23 @@ START TRANSACTION
|
|||
### WHERE
|
||||
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 2937
|
||||
#<date> server id 1 end_log_pos 3010 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 3010
|
||||
#<date> server id 1 end_log_pos 3052 CRC32 XXX GTID 0-1-10
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 3052
|
||||
# at 3089
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Annotate_rows:
|
||||
# at #
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||
#Q> DELETE FROM t2
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at 3145
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Delete_rows: table id 33 flags: STMT_END_F
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t2` mapped to number num
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Delete_rows: table id 33 flags: STMT_END_F
|
||||
### DELETE FROM `test`.`t2`
|
||||
### WHERE
|
||||
### @1=10 /* INT meta=0 nullable=0 is_null=0 */
|
||||
|
@ -314,13 +314,13 @@ START TRANSACTION
|
|||
### WHERE
|
||||
### @1=13 /* INT meta=0 nullable=0 is_null=0 */
|
||||
# Number of rows: 4
|
||||
# at 3199
|
||||
#<date> server id 1 end_log_pos 3272 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 3272
|
||||
#<date> server id 1 end_log_pos 3320 CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
# at #
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
DELIMITER ;
|
||||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
|
@ -370,7 +370,7 @@ FLUSH BINARY LOGS;
|
|||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
# at POS
|
||||
#<date> server id 1 end_log_pos END_LOG_POS CRC32 XXX GTID D-S-N
|
||||
#<date> server id 1 end_log_pos END_LOG_POS CRC32 XXX GTID D-S-N thread_id=TID
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
|
|
@ -28,7 +28,7 @@ DELETE FROM t2;
|
|||
FLUSH BINARY LOGS;
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/ /thread_id=\d*/thread_id=TID/ /end_log_pos [0-9]*/end_log_pos #/ /# at [0-9]*/# at #/
|
||||
--exec $MYSQL_BINLOG --verbose --verbose --base64-output=DECODE-ROWS $datadir/$binlog
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
|
|
@ -16,23 +16,23 @@ FLUSH BINARY LOGS;
|
|||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
# at 4
|
||||
#<date> server id 1 end_log_pos 256 CRC32 XXX Start: xxx
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Start: xxx
|
||||
ROLLBACK/*!*/;
|
||||
# at 256
|
||||
#<date> server id 1 end_log_pos 285 CRC32 XXX Gtid list []
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Gtid list []
|
||||
# at 285
|
||||
#<date> server id 1 end_log_pos 329 CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at 329
|
||||
#<date> server id 1 end_log_pos 371 CRC32 XXX GTID 0-1-1 ddl
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=TID
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
/*!100001 SET @@session.gtid_seq_no=1*//*!*/;
|
||||
# at 371
|
||||
#<date> server id 1 end_log_pos 542 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
use `test`/*!*/;
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
SET @@session.pseudo_thread_id=5/*!*/;
|
||||
SET @@session.pseudo_thread_id=TID/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1, @@session.sql_if_exists=0, @@session.explicit_defaults_for_timestamp=1, @@session.system_versioning_insert_history=0/*!*/;
|
||||
SET @@session.sql_mode=#/*!*/;
|
||||
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
|
||||
|
@ -43,135 +43,135 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 TINYINT, f4 MEDIUMINT, f5 BIGINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 542
|
||||
#<date> server id 1 end_log_pos 584 CRC32 XXX GTID 0-1-2 ddl
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at 584
|
||||
#<date> server id 1 end_log_pos 745 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
CREATE TABLE t2 (pk INT PRIMARY KEY, f1 INT, f2 INT, f3 INT, f4 INT, f5 MEDIUMINT, f6 INT, f7 INT, f8 char(1))
|
||||
/*!*/;
|
||||
# at 745
|
||||
#<date> server id 1 end_log_pos 787 CRC32 XXX GTID 0-1-3
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 787
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
INSERT INTO t1 VALUES (10, 1, 2, 3, 4, 5, 6, 7, "")
|
||||
/*!*/;
|
||||
# at 915
|
||||
#<date> server id 1 end_log_pos 988 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 988
|
||||
#<date> server id 1 end_log_pos 1030 CRC32 XXX GTID 0-1-4
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1030
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
INSERT INTO t1 VALUES (11, 1, 2, 3, 4, 5, 6, 7, NULL)
|
||||
/*!*/;
|
||||
# at 1158
|
||||
#<date> server id 1 end_log_pos 1231 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1231
|
||||
#<date> server id 1 end_log_pos 1273 CRC32 XXX GTID 0-1-5
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1273
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
INSERT INTO t1 VALUES (12, 1, 2, 3, NULL, 5, 6, 7, "A")
|
||||
/*!*/;
|
||||
# at 1403
|
||||
#<date> server id 1 end_log_pos 1476 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1476
|
||||
#<date> server id 1 end_log_pos 1518 CRC32 XXX GTID 0-1-6
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1518
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
INSERT INTO t1 VALUES (13, 1, 2, 3, 0, 5, 6, 7, "A")
|
||||
/*!*/;
|
||||
# at 1645
|
||||
#<date> server id 1 end_log_pos 1718 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1718
|
||||
#<date> server id 1 end_log_pos 1760 CRC32 XXX GTID 0-1-7
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1760
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
INSERT INTO t2 SELECT * FROM t1
|
||||
/*!*/;
|
||||
# at 1868
|
||||
#<date> server id 1 end_log_pos 1941 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 1941
|
||||
#<date> server id 1 end_log_pos 1983 CRC32 XXX GTID 0-1-8
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 1983
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
UPDATE t2 SET f4=5 WHERE f4>0 or f4 is NULL
|
||||
/*!*/;
|
||||
# at 2100
|
||||
#<date> server id 1 end_log_pos 2173 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2173
|
||||
#<date> server id 1 end_log_pos 2215 CRC32 XXX GTID 0-1-9
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2215
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
DELETE FROM t1
|
||||
/*!*/;
|
||||
# at 2306
|
||||
#<date> server id 1 end_log_pos 2379 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2379
|
||||
#<date> server id 1 end_log_pos 2421 CRC32 XXX GTID 0-1-10
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=TID
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
# at 2421
|
||||
#<date> server id 1 end_log_pos 0 CRC32 XXX Query_compressed thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query_compressed thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
DELETE FROM t2
|
||||
/*!*/;
|
||||
# at 2512
|
||||
#<date> server id 1 end_log_pos 2585 CRC32 XXX Query thread_id=5 exec_time=x error_code=0 xid=<xid>
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Query thread_id=TID exec_time=x error_code=0 xid=<xid>
|
||||
SET TIMESTAMP=X/*!*/;
|
||||
COMMIT
|
||||
/*!*/;
|
||||
# at 2585
|
||||
#<date> server id 1 end_log_pos 2633 CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
#<date> server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||
DELIMITER ;
|
||||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
|
|
|
@ -29,7 +29,7 @@ DELETE FROM t2;
|
|||
|
||||
FLUSH BINARY LOGS;
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/
|
||||
--replace_regex /\d{6} *\d*:\d\d:\d\d/<date>/ /Start:.*at startup/Start: xxx/ /SET TIMESTAMP=\d*/SET TIMESTAMP=X/ /exec_time=\d*/exec_time=x/ /mapped to number \d*/mapped to number num/ /CRC32 0x[0-9a-f]+/CRC32 XXX/ /@@session.sql_mode=\d+/@@session.sql_mode=#/ /collation_server=\d+/collation_server=#/ /xid=\d*/xid=<xid>/ /thread_id=\d*/thread_id=TID/ /end_log_pos [0-9]*/end_log_pos #/
|
||||
--exec $MYSQL_BINLOG --verbose --verbose --base64-output=DECODE-ROWS $datadir/$binlog
|
||||
|
||||
--echo
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -2260,7 +2260,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -2369,7 +2369,7 @@ crn INT -- row number
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -2551,7 +2551,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -2733,7 +2733,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3081,7 +3081,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3421,7 +3421,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3766,7 +3766,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4109,7 +4109,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4455,7 +4455,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4635,7 +4635,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4812,7 +4812,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=11*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4992,7 +4992,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=12*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5270,7 +5270,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -5295,7 +5295,7 @@ crn INT -- row number
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5365,7 +5365,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5444,7 +5444,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5671,7 +5671,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -5696,7 +5696,7 @@ c_1_n INT -- row number
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -5709,7 +5709,7 @@ c_2_n INT -- row number
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -5722,7 +5722,7 @@ c_3_n INT -- row number
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5792,7 +5792,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5862,7 +5862,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5932,7 +5932,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -6122,7 +6122,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -6312,7 +6312,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -6337,7 +6337,7 @@ c3 VARCHAR(60)
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -2258,7 +2258,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -2367,7 +2367,7 @@ crn INT -- row number
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -2551,7 +2551,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -2735,7 +2735,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3085,7 +3085,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3427,7 +3427,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -3774,7 +3774,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4119,7 +4119,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4467,7 +4467,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4649,7 +4649,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -4828,7 +4828,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=11*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5010,7 +5010,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=12*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5290,7 +5290,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -5315,7 +5315,7 @@ crn INT -- row number
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5387,7 +5387,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5468,7 +5468,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5697,7 +5697,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -5722,7 +5722,7 @@ c_1_n INT -- row number
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -5735,7 +5735,7 @@ c_2_n INT -- row number
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -5748,7 +5748,7 @@ c_3_n INT -- row number
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5820,7 +5820,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5892,7 +5892,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -5964,7 +5964,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -6156,7 +6156,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -6348,7 +6348,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -6373,7 +6373,7 @@ c3 VARCHAR(60)
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -136,7 +136,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -160,7 +160,7 @@ c2 VARCHAR(20)
|
|||
) ENGINE=InnoDB DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -172,7 +172,7 @@ c2 VARCHAR(20)
|
|||
) ENGINE=MyISAM DEFAULT CHARSET latin1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -241,7 +241,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -249,7 +249,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -257,7 +257,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -287,7 +287,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -326,7 +326,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -348,7 +348,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 trans
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-9 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -417,7 +417,7 @@ START TRANSACTION
|
|||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-10 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -425,7 +425,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-11 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=11*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -433,7 +433,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
TRUNCATE TABLE t2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-12 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=12*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -463,7 +463,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-13
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-13 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=13*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -502,7 +502,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-14
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-14 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=14*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -524,7 +524,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-15 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-15 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=15*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -532,7 +532,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-16 ddl
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-16 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=16*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
|
|
@ -37,27 +37,27 @@ connect tmp_con,localhost,root,,;
|
|||
disconnect tmp_con;
|
||||
connection default;
|
||||
FLUSH LOGS;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (1,0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (2,0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
/* GTID */ ALTER TABLE t1 ADD c INT
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (3,0,0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ UPDATE t1 SET b=1, c=1 WHERE a=2
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
|
@ -69,7 +69,7 @@ START TRANSACTION
|
|||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ DELETE FROM t1 WHERE a=5
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
|
@ -81,25 +81,25 @@ START TRANSACTION
|
|||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Update_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (8, 5, 0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (9, 5, 1)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (10, 6, 0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
# server id 1 end_log_pos # CRC32 0x######## Write_rows: table id # flags: STMT_END_F
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
#Q> /* GTID */ INSERT INTO t1 VALUES (11, 7, 0)
|
||||
# server id 1 end_log_pos # CRC32 0x######## Table_map: `test`.`t1` mapped to number #
|
||||
|
|
|
@ -37,21 +37,21 @@ connect tmp_con,localhost,root,,;
|
|||
disconnect tmp_con;
|
||||
connection default;
|
||||
FLUSH LOGS;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (1,0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (2,0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
/* GTID */ ALTER TABLE t1 ADD c INT
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (3,0,0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ UPDATE t1 SET b=1, c=1 WHERE a=2
|
||||
/* GTID */ CREATE TEMPORARY TABLE t2 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB
|
||||
|
@ -60,9 +60,9 @@ START TRANSACTION
|
|||
DROP TEMPORARY TABLE `t2` /* generated by server */
|
||||
/* GTID */ INSERT INTO t1 VALUES (6, 3, 0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
/* GTID */ CREATE TEMPORARY TABLE t3 (a INT PRIMARY KEY) ENGINE=InnoDB
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ DELETE FROM t1 WHERE a=5
|
||||
/* GTID */ INSERT INTO t3 VALUES (7)
|
||||
|
@ -70,27 +70,27 @@ START TRANSACTION
|
|||
/* GTID */ UPDATE t1 SET c=1 WHERE a=7
|
||||
DROP TEMPORARY TABLE `t3` /* generated by server */
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
/* GTID */ CREATE TEMPORARY TABLE t4 (a INT PRIMARY KEY) ENGINE=InnoDB
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (8, 5, 0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
/* GTID */ ALTER TABLE t4 ADD b INT
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (9, 5, 1)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ INSERT INTO t1 VALUES (10, 6, 0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
START TRANSACTION
|
||||
/* GTID */ CREATE TEMPORARY TABLE t5 (a INT PRIMARY KEY) ENGINE=InnoDB
|
||||
/* GTID */ INSERT INTO t1 VALUES (11, 7, 0)
|
||||
COMMIT/*!*/;
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl thread_id=#
|
||||
DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `t5`
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -107,7 +107,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -126,7 +126,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -134,7 +134,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -142,7 +142,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -169,7 +169,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -196,7 +196,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -223,7 +223,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -265,7 +265,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -292,7 +292,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -345,7 +345,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -364,15 +364,15 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -399,7 +399,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -412,7 +412,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -425,7 +425,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -455,7 +455,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -468,7 +468,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -504,7 +504,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -523,7 +523,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -531,7 +531,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -539,7 +539,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -564,7 +564,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -589,7 +589,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -614,7 +614,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -652,7 +652,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -677,7 +677,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -730,7 +730,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -749,7 +749,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -757,7 +757,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -765,7 +765,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -792,7 +792,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -819,7 +819,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -846,7 +846,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -888,7 +888,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -915,7 +915,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -968,7 +968,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -987,15 +987,15 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1022,7 +1022,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1035,7 +1035,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1048,7 +1048,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1078,7 +1078,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1091,7 +1091,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1127,7 +1127,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -1146,7 +1146,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -1154,7 +1154,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -1162,7 +1162,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1186,7 +1186,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1210,7 +1210,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1234,7 +1234,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1271,7 +1271,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -1295,7 +1295,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -82,7 +82,7 @@ DELIMITER /*!*/;
|
|||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000003
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=#*//*!*/;
|
||||
/*!100001 SET @@session.server_id=#*//*!*/;
|
||||
|
@ -103,7 +103,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8)
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -124,7 +124,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -145,7 +145,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -166,7 +166,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -187,7 +187,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -208,7 +208,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -229,7 +229,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
|
|
@ -40,7 +40,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -60,7 +60,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (a INT, b INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -86,7 +86,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -95,7 +95,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE TABLE t2 (a INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -119,7 +119,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -141,7 +141,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
# at #
|
||||
use `new_test3`/*!*/;
|
||||
|
@ -150,7 +150,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE TABLE t3 (a INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -174,7 +174,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -196,7 +196,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -235,7 +235,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -281,7 +281,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -301,7 +301,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (a INT, b INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -327,7 +327,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -336,7 +336,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE TABLE t2 (a INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -360,7 +360,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -382,7 +382,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
# at #
|
||||
use `new_test3`/*!*/;
|
||||
|
@ -391,7 +391,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE TABLE t3 (a INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -415,7 +415,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -437,7 +437,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -476,7 +476,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -84,7 +84,7 @@ DELIMITER /*!*/;
|
|||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000003
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=#*//*!*/;
|
||||
/*!100001 SET @@session.server_id=#*//*!*/;
|
||||
|
@ -105,7 +105,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8)
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -120,7 +120,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -136,7 +136,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -151,7 +151,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -166,7 +166,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -182,7 +182,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-#
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -197,7 +197,7 @@ SET TIMESTAMP=XXX/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX GTID #-#-# ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=#*//*!*/;
|
||||
# at #
|
||||
#YYMMDD HH:MM:SS server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
|
|
@ -50,7 +50,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -79,7 +79,7 @@ c08 TEXT
|
|||
) ENGINE=InnoDB
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-2 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -105,7 +105,7 @@ START TRANSACTION
|
|||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-3 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -131,7 +131,7 @@ START TRANSACTION
|
|||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-4 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -157,7 +157,7 @@ START TRANSACTION
|
|||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-5 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -211,7 +211,7 @@ START TRANSACTION
|
|||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans
|
||||
#010909 9:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-6 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -111,7 +111,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -130,7 +130,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -138,7 +138,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -146,7 +146,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -173,7 +173,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -200,7 +200,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -227,7 +227,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -269,7 +269,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -296,7 +296,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -352,7 +352,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -371,15 +371,15 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -406,7 +406,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -419,7 +419,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -432,7 +432,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -462,7 +462,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -475,7 +475,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -514,7 +514,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Binlog checkpoint master-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -533,7 +533,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE DATABASE test1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -541,7 +541,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test2
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -549,7 +549,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE DATABASE test3
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-4 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -573,7 +573,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-5 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -597,7 +597,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-6 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -621,7 +621,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-7 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -658,7 +658,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-8 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -682,7 +682,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9
|
||||
#010909 4:46:40 server id # end_log_pos # GTID 0-1-9 thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
|
|
@ -97,7 +97,8 @@ SELECT * FROM t1 ORDER BY a;
|
|||
# for the end of the second transaction (as can be checked with
|
||||
# mysqlbinlog).
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
let pos=`select $binlog_start_pos + 739`;
|
||||
# GTID thread_id increased the event size by 2*(1+4)
|
||||
let pos=`select $binlog_start_pos + 739 + 2*(1+4)`;
|
||||
--replace_result $pos <pos>
|
||||
--exec sed -ne 's/.*\(InnoDB: Last binlog file .* position.*\)/\1/p' $MYSQLD_DATADIR/../../log/mysqld.1.err | tail -1
|
||||
|
||||
|
|
|
@ -98,7 +98,8 @@ SELECT * FROM t1 ORDER BY a;
|
|||
# for the end of the second transaction (as can be checked with
|
||||
# mysqlbinlog).
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
let pos=`select $binlog_start_pos + 739`;
|
||||
# GTID thread_id increased the event size by 2*(1+4)
|
||||
let pos=`select $binlog_start_pos + 739 + 2*(1+4)`;
|
||||
--replace_result $pos <pos>
|
||||
--exec sed -ne 's/.*\(InnoDB: Last binlog file .* position.*\)/\1/p' $MYSQLD_DATADIR/../../log/mysqld.1.err | tail -1
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
|
|
|
@ -190,7 +190,7 @@ ROLLBACK/*!*/;
|
|||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Binlog checkpoint slave-bin.000001
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-1 ddl thread_id=#
|
||||
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
|
||||
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
|
@ -210,7 +210,7 @@ SET @@session.collation_database=DEFAULT/*!*/;
|
|||
CREATE TABLE t1 (a INT, b INT, c INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-2 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=2*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -218,7 +218,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
CREATE TABLE t2 (a INT, b INT, c INT)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-2-3 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-2-3 ddl thread_id=#
|
||||
/*!100001 SET @@session.server_id=2*//*!*/;
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
# at #
|
||||
|
@ -227,7 +227,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
ALTER TABLE t1 ENGINE=BLACKHOLE
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-3 trans thread_id=#
|
||||
/*!100001 SET @@session.server_id=1*//*!*/;
|
||||
/*!100001 SET @@session.gtid_seq_no=3*//*!*/;
|
||||
START TRANSACTION
|
||||
|
@ -246,7 +246,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-4 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=4*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -264,7 +264,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-5 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=5*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -282,7 +282,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-6 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=6*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -300,7 +300,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-7 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=7*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -318,7 +318,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-8 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=8*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -326,7 +326,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
ALTER TABLE t1 ADD PRIMARY KEY pk_t1 (a,b)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-9 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=9*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -344,7 +344,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-10 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=10*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -362,7 +362,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-11 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-11 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=11*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -380,7 +380,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-12 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-12 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=12*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
@ -388,7 +388,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
ALTER TABLE t1 DROP PRIMARY KEY, ADD KEY key_t1 (a)
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-13 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-13 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=13*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -406,7 +406,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-14 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-14 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=14*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -424,7 +424,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-15 trans
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-15 trans thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=15*//*!*/;
|
||||
START TRANSACTION
|
||||
/*!*/;
|
||||
|
@ -442,7 +442,7 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||
COMMIT
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-16 ddl
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX GTID 0-1-16 ddl thread_id=#
|
||||
/*!100001 SET @@session.gtid_seq_no=16*//*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id # end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0 xid=<xid>
|
||||
|
|
73
mysql-test/suite/rpl/r/rpl_gtid_thread_id.result
Normal file
73
mysql-test/suite/rpl/r/rpl_gtid_thread_id.result
Normal file
|
@ -0,0 +1,73 @@
|
|||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection master;
|
||||
create table t1(a int);
|
||||
insert into t1 values(1);
|
||||
optimize table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
connection slave;
|
||||
connection master;
|
||||
# MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
include/assert_grep.inc [Ensure only 3 GTID events exist (Primary)]
|
||||
include/assert_grep.inc [Ensure each GTID event has the thread id (Primary)]
|
||||
#
|
||||
# GTID event's thread_id should use pseudo_thread_id
|
||||
connection master;
|
||||
set @@pseudo_thread_id=99999;
|
||||
insert into t1 values(2);
|
||||
# MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
include/assert_grep.inc [GTID event's thread_id should use pseudo_thread_id]
|
||||
#
|
||||
# Test the serial replica
|
||||
connection slave;
|
||||
# MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
include/assert_grep.inc [Ensure the same number of GTID events on the replica as the primary]
|
||||
include/assert_grep.inc [Ensure GTID events logged with primary's thread id maintain that value]
|
||||
include/assert_grep.inc [Ensure GTID event logged with pseudo_thread_id on primary maintains that value]
|
||||
#
|
||||
# Test the parallel replica
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
SET @@GLOBAL.slave_parallel_threads=1;
|
||||
include/start_slave.inc
|
||||
connection master;
|
||||
insert into t1 values(3);
|
||||
insert into t1 values(4);
|
||||
connection slave;
|
||||
connection slave;
|
||||
# MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
include/assert_grep.inc [Ensure the same number of GTID events on the replica as the primary]
|
||||
include/assert_grep.inc [Ensure GTID the new events are logged on the replica with the thread_id of the master primary thread id]
|
||||
include/stop_slave.inc
|
||||
SET @@GLOBAL.slave_parallel_threads=0;
|
||||
include/start_slave.inc
|
||||
#
|
||||
# MDEV-33924: If pseudo_thread_id is set to 0, thread_id should still be
|
||||
# written and propagated to slaves
|
||||
connection master;
|
||||
set @@pseudo_thread_id=0;
|
||||
insert into t1 values(33924);
|
||||
# MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
include/assert_grep.inc [GTID event's thread_id should write pseudo_thread_id value of 0]
|
||||
connection slave;
|
||||
connection slave;
|
||||
# MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
include/assert_grep.inc [A 0 value for GTID event's thread_id should be propagated on replicas]
|
||||
# If pseudo_thread_id is set to a value greater than 4 bytes, thread_id
|
||||
# should be truncated to a 32-bit value in the binary log (see
|
||||
# MDEV-15089 for details)
|
||||
connection master;
|
||||
set @@pseudo_thread_id=99999999999999999999;
|
||||
insert into t1 values(15089);
|
||||
# MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
include/assert_grep.inc [GTID event's thread_id should truncate values higher than 32 bit]
|
||||
connection slave;
|
||||
connection slave;
|
||||
# MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
include/assert_grep.inc [The truncated thread_id should be preserved on the replica]
|
||||
#
|
||||
# Cleanup
|
||||
connection master;
|
||||
drop table t1;
|
||||
include/rpl_end.inc
|
185
mysql-test/suite/rpl/t/rpl_gtid_thread_id.test
Normal file
185
mysql-test/suite/rpl/t/rpl_gtid_thread_id.test
Normal file
|
@ -0,0 +1,185 @@
|
|||
#
|
||||
# Verify that GTID log events are written into the binary log along with the
|
||||
# id of the thread which originally executed the transaction. On the primary,
|
||||
# this is the id of the user connection (or the pseudo_thread_id). The replica
|
||||
# should maintain this value when binlogging.
|
||||
#
|
||||
# References:
|
||||
# MDEV-7850: MariaDB doesn't show thread_id for ROW-based events in binlog
|
||||
#
|
||||
--source include/have_binlog_format_row.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
--connection master
|
||||
--let primary_thread_id=`select connection_id()`
|
||||
create table t1(a int);
|
||||
insert into t1 values(1);
|
||||
optimize table t1;
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
--connection master
|
||||
--let datadir= `select @@datadir`
|
||||
--let filename= query_get_value(SHOW MASTER STATUS, File, 1)
|
||||
--let primary_local_binlog=$datadir/$filename
|
||||
--let primary_outfile=$MYSQLTEST_VARDIR/tmp/primary_binlog.sql
|
||||
--echo # MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
--exec $MYSQL_BINLOG $primary_local_binlog > $primary_outfile
|
||||
|
||||
--let $assert_count= 3
|
||||
--let $assert_text= Ensure only $assert_count GTID events exist (Primary)
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9]
|
||||
--let $assert_file= $primary_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--let $assert_text= Ensure each GTID event has the thread id (Primary)
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=$primary_thread_id\$
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--echo #
|
||||
--echo # GTID event's thread_id should use pseudo_thread_id
|
||||
--connection master
|
||||
--let $old_pseudo_id= `SELECT @@SESSION.pseudo_thread_id`
|
||||
set @@pseudo_thread_id=99999;
|
||||
insert into t1 values(2);
|
||||
--echo # MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
--exec $MYSQL_BINLOG $primary_local_binlog > $primary_outfile
|
||||
|
||||
--let $assert_count= 1
|
||||
--let $assert_text= GTID event's thread_id should use pseudo_thread_id
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=99999\$
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--disable_query_log
|
||||
--eval set @@pseudo_thread_id=$old_pseudo_id
|
||||
--enable_query_log
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Test the serial replica
|
||||
--connection slave
|
||||
--let replica_thread_id=`select connection_id()`
|
||||
--let datadir= `select @@datadir`
|
||||
--let filename= query_get_value(SHOW MASTER STATUS, File, 1)
|
||||
--let replica_local_binlog=$datadir/$filename
|
||||
--let replica_outfile=$MYSQLTEST_VARDIR/tmp/serial_replica_binlog.sql
|
||||
--echo # MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
--exec $MYSQL_BINLOG $replica_local_binlog > $replica_outfile
|
||||
|
||||
--let $assert_count= 4
|
||||
--let $assert_text= Ensure the same number of GTID events on the replica as the primary
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9]
|
||||
--let $assert_file= $replica_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--let $assert_count= 3
|
||||
--let $assert_text= Ensure GTID events logged with primary's thread id maintain that value
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=$primary_thread_id\$
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--let $assert_count= 1
|
||||
--let $assert_text= Ensure GTID event logged with pseudo_thread_id on primary maintains that value
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=99999\$
|
||||
--source include/assert_grep.inc
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Test the parallel replica
|
||||
--connection slave
|
||||
--source include/stop_slave.inc
|
||||
--let $old_parallel_threads= `SELECT @@GLOBAL.slave_parallel_threads`
|
||||
SET @@GLOBAL.slave_parallel_threads=1;
|
||||
--source include/start_slave.inc
|
||||
|
||||
--connection master
|
||||
insert into t1 values(3);
|
||||
insert into t1 values(4);
|
||||
--sync_slave_with_master
|
||||
|
||||
--connection slave
|
||||
--echo # MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
--exec $MYSQL_BINLOG $replica_local_binlog > $replica_outfile
|
||||
|
||||
--let $assert_count= 6
|
||||
--let $assert_text= Ensure the same number of GTID events on the replica as the primary
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9]
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--let $assert_count= 5
|
||||
--let $assert_text= Ensure GTID the new events are logged on the replica with the thread_id of the master primary thread id
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=$primary_thread_id\$
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--source include/stop_slave.inc
|
||||
--eval SET @@GLOBAL.slave_parallel_threads=$old_parallel_threads
|
||||
--source include/start_slave.inc
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-33924: If pseudo_thread_id is set to 0, thread_id should still be
|
||||
--echo # written and propagated to slaves
|
||||
--connection master
|
||||
--let $old_pseudo_id= `SELECT @@SESSION.pseudo_thread_id`
|
||||
set @@pseudo_thread_id=0;
|
||||
insert into t1 values(33924);
|
||||
--echo # MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
--exec $MYSQL_BINLOG $primary_local_binlog > $primary_outfile
|
||||
|
||||
--let $assert_count= 1
|
||||
--let $assert_text= GTID event's thread_id should write pseudo_thread_id value of 0
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=0\$
|
||||
--let $assert_file= $primary_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--sync_slave_with_master
|
||||
--connection slave
|
||||
--echo # MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
--exec $MYSQL_BINLOG $replica_local_binlog > $replica_outfile
|
||||
|
||||
--let $assert_text= A 0 value for GTID event's thread_id should be propagated on replicas
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=0\$
|
||||
--let $assert_file= $replica_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--echo # If pseudo_thread_id is set to a value greater than 4 bytes, thread_id
|
||||
--echo # should be truncated to a 32-bit value in the binary log (see
|
||||
--echo # MDEV-15089 for details)
|
||||
--connection master
|
||||
# Silence the truncation warning
|
||||
--disable_warnings
|
||||
set @@pseudo_thread_id=99999999999999999999;
|
||||
--enable_warnings
|
||||
insert into t1 values(15089);
|
||||
--echo # MYSQL_BINLOG primary_local_binlog > primary_outfile
|
||||
--exec $MYSQL_BINLOG $primary_local_binlog > $primary_outfile
|
||||
|
||||
--let $assert_count= 1
|
||||
--let $assert_text= GTID event's thread_id should truncate values higher than 32 bit
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=4294967295\$
|
||||
--let $assert_file= $primary_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--sync_slave_with_master
|
||||
--connection slave
|
||||
--echo # MYSQL_BINLOG replica_local_binlog > replica_outfile
|
||||
--exec $MYSQL_BINLOG $replica_local_binlog > $replica_outfile
|
||||
|
||||
--let $assert_text= The truncated thread_id should be preserved on the replica
|
||||
--let $assert_select=GTID [0-9]-[0-9]-[0-9].*thread_id=4294967295\$
|
||||
--let $assert_file= $replica_outfile
|
||||
--source include/assert_grep.inc
|
||||
|
||||
--disable_query_log
|
||||
--connection master
|
||||
--eval set @@pseudo_thread_id=$old_pseudo_id
|
||||
--enable_query_log
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # Cleanup
|
||||
--connection master
|
||||
drop table t1;
|
||||
remove_file $primary_outfile;
|
||||
remove_file $replica_outfile;
|
||||
|
||||
--source include/rpl_end.inc
|
|
@ -1586,6 +1586,17 @@ Query_log_event::Query_log_event(const uchar *buf, uint event_len,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case Q_DUMMY:
|
||||
{
|
||||
/*
|
||||
At some point, this query event was translated from a GTID event, with
|
||||
these Q_DUMMY bytes added to pad the end of the header. We can skip the
|
||||
rest of processing these vars. Note this is a separate case from the
|
||||
default to avoid the DBUG_PRINT of an unknown status var.
|
||||
*/
|
||||
pos= (const uchar*) end;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
/* That's why you must write status vars in growing order of code */
|
||||
DBUG_PRINT("info",("Query_log_event has unknown status vars (first has\
|
||||
|
@ -1890,6 +1901,7 @@ Query_log_event::begin_event(String *packet, ulong ev_offset,
|
|||
uchar *p= (uchar *)packet->ptr() + ev_offset;
|
||||
uchar *q= p + LOG_EVENT_HEADER_LEN;
|
||||
size_t data_len= packet->length() - ev_offset;
|
||||
size_t dummy_bytes;
|
||||
uint16 flags;
|
||||
|
||||
if (checksum_alg == BINLOG_CHECKSUM_ALG_CRC32)
|
||||
|
@ -1898,15 +1910,6 @@ Query_log_event::begin_event(String *packet, ulong ev_offset,
|
|||
DBUG_ASSERT(checksum_alg == BINLOG_CHECKSUM_ALG_UNDEF ||
|
||||
checksum_alg == BINLOG_CHECKSUM_ALG_OFF);
|
||||
|
||||
/*
|
||||
Currently we only need to replace GTID event.
|
||||
The length of GTID differs depending on whether it contains commit id.
|
||||
*/
|
||||
DBUG_ASSERT(data_len == LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN ||
|
||||
data_len == LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN + 2);
|
||||
if (data_len != LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN &&
|
||||
data_len != LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN + 2)
|
||||
return 1;
|
||||
|
||||
flags= uint2korr(p + FLAGS_OFFSET);
|
||||
flags&= ~LOG_EVENT_THREAD_SPECIFIC_F;
|
||||
|
@ -1918,22 +1921,21 @@ Query_log_event::begin_event(String *packet, ulong ev_offset,
|
|||
int4store(q + Q_EXEC_TIME_OFFSET, 0);
|
||||
q[Q_DB_LEN_OFFSET]= 0;
|
||||
int2store(q + Q_ERR_CODE_OFFSET, 0);
|
||||
if (data_len == LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN)
|
||||
{
|
||||
int2store(q + Q_STATUS_VARS_LEN_OFFSET, 0);
|
||||
q[Q_DATA_OFFSET]= 0; /* Zero terminator for empty db */
|
||||
q+= Q_DATA_OFFSET + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
DBUG_ASSERT(data_len == LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN + 2);
|
||||
/* Put in an empty time_zone_str to take up the extra 2 bytes. */
|
||||
int2store(q + Q_STATUS_VARS_LEN_OFFSET, 2);
|
||||
q[Q_DATA_OFFSET]= Q_TIME_ZONE_CODE;
|
||||
q[Q_DATA_OFFSET+1]= 0; /* Zero length for empty time_zone_str */
|
||||
q[Q_DATA_OFFSET+2]= 0; /* Zero terminator for empty db */
|
||||
q+= Q_DATA_OFFSET + 3;
|
||||
}
|
||||
|
||||
/*
|
||||
If the allocated GTID event packet header is longer than the size of the
|
||||
standard BEGIN query event's, then we need to fill in everything else with
|
||||
"dummy" values. That is, old replicas won't recognize the meaning for the
|
||||
DUMMY value, and will skip the rest of the status vars section.
|
||||
*/
|
||||
DBUG_ASSERT(data_len >= LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN);
|
||||
dummy_bytes= data_len - (LOG_EVENT_HEADER_LEN + GTID_HEADER_LEN);
|
||||
int2store(q + Q_STATUS_VARS_LEN_OFFSET, dummy_bytes);
|
||||
for (size_t i= 0; i < dummy_bytes; i++)
|
||||
q[Q_DATA_OFFSET + i]= Q_DUMMY;
|
||||
q[Q_DATA_OFFSET + dummy_bytes]= 0; /* Zero terminator for empty db */
|
||||
q+= Q_DATA_OFFSET + dummy_bytes + 1;
|
||||
|
||||
memcpy(q, "BEGIN", 5);
|
||||
|
||||
if (checksum_alg == BINLOG_CHECKSUM_ALG_CRC32)
|
||||
|
@ -2394,7 +2396,7 @@ Gtid_log_event::Gtid_log_event(const uchar *buf, uint event_len,
|
|||
const Format_description_log_event
|
||||
*description_event)
|
||||
: Log_event(buf, description_event), seq_no(0), commit_id(0),
|
||||
flags_extra(0), extra_engines(0)
|
||||
flags_extra(0), extra_engines(0), thread_id(0)
|
||||
{
|
||||
uint8 header_size= description_event->common_header_len;
|
||||
uint8 post_header_len= description_event->post_header_len[GTID_EVENT-1];
|
||||
|
@ -2454,6 +2456,13 @@ Gtid_log_event::Gtid_log_event(const uchar *buf, uint event_len,
|
|||
sa_seq_no= uint8korr(buf);
|
||||
buf+= 8;
|
||||
}
|
||||
|
||||
if (flags_extra & FL_EXTRA_THREAD_ID &&
|
||||
static_cast<uint>(buf - buf_0) <= event_len + 4)
|
||||
{
|
||||
thread_id= uint4korr(buf);
|
||||
buf+= 4;
|
||||
}
|
||||
}
|
||||
/*
|
||||
the strict '<' part of the assert corresponds to extra zero-padded
|
||||
|
|
|
@ -333,6 +333,17 @@ class String;
|
|||
#define Q_HRNOW 128
|
||||
#define Q_XID 129
|
||||
|
||||
/*
|
||||
When sending transactions to old slaves that don't support GTID events, the
|
||||
GTID event is over-written (in-place, i.e. within the same allocated memory)
|
||||
to be a BEGIN query event. If the header length of the original GTID event
|
||||
exceeds the standard length of the Query event header, Q_DUMMY bytes pad the
|
||||
status var section of the Query header so the structure of the Query event
|
||||
is valid. Old slaves will see the first Q_DUMMY byte, not recognize it, and
|
||||
skip reading the rest of the status var section.
|
||||
*/
|
||||
#define Q_DUMMY 255
|
||||
|
||||
#define Q_GTID_FLAGS3 130
|
||||
|
||||
#define Q_CHARACTER_SET_COLLATIONS 131
|
||||
|
@ -3326,6 +3337,7 @@ public:
|
|||
When zero the event does not contain that information.
|
||||
*/
|
||||
uint8 extra_engines;
|
||||
my_thread_id thread_id;
|
||||
|
||||
/* Flags2. */
|
||||
|
||||
|
@ -3371,6 +3383,7 @@ public:
|
|||
static const uchar FL_START_ALTER_E1= 2;
|
||||
static const uchar FL_COMMIT_ALTER_E1= 4;
|
||||
static const uchar FL_ROLLBACK_ALTER_E1= 8;
|
||||
static const uchar FL_EXTRA_THREAD_ID= 16; // thread_id like in BEGIN Query
|
||||
|
||||
#ifdef MYSQL_SERVER
|
||||
Gtid_log_event(THD *thd_arg, uint64 seq_no, uint32 domain_id, bool standalone,
|
||||
|
|
|
@ -3836,6 +3836,12 @@ Gtid_log_event::print(FILE *file, PRINT_EVENT_INFO *print_event_info)
|
|||
if (flags_extra & FL_ROLLBACK_ALTER_E1)
|
||||
if (my_b_printf(&cache, " ROLLBACK ALTER id= %lu", sa_seq_no))
|
||||
goto err;
|
||||
if (flags_extra & FL_EXTRA_THREAD_ID)
|
||||
{
|
||||
longlong10_to_str(thread_id, buf2, 10);
|
||||
if (my_b_printf(&cache, " thread_id=%s", buf2))
|
||||
goto err;
|
||||
}
|
||||
if (my_b_printf(&cache, "\n"))
|
||||
goto err;
|
||||
|
||||
|
|
|
@ -2816,7 +2816,8 @@ Gtid_log_event::Gtid_log_event(THD *thd_arg, uint64 seq_no_arg,
|
|||
seq_no(seq_no_arg), commit_id(commit_id_arg), domain_id(domain_id_arg),
|
||||
flags2((standalone ? FL_STANDALONE : 0) |
|
||||
(commit_id_arg ? FL_GROUP_COMMIT_ID : 0)),
|
||||
flags_extra(0), extra_engines(0)
|
||||
flags_extra(0), extra_engines(0),
|
||||
thread_id(thd_arg->variables.pseudo_thread_id)
|
||||
{
|
||||
cache_type= Log_event::EVENT_NO_CACHE;
|
||||
bool is_tmp_table= thd_arg->lex->stmt_accessed_temp_table();
|
||||
|
@ -2840,6 +2841,9 @@ Gtid_log_event::Gtid_log_event(THD *thd_arg, uint64 seq_no_arg,
|
|||
/* Preserve any DDL or WAITED flag in the slave's binlog. */
|
||||
if (thd_arg->rgi_slave)
|
||||
flags2|= (thd_arg->rgi_slave->gtid_ev_flags2 & (FL_DDL|FL_WAITED));
|
||||
if (!thd->rgi_slave ||
|
||||
thd_arg->rgi_slave->gtid_ev_flags_extra & FL_EXTRA_THREAD_ID)
|
||||
flags_extra|= FL_EXTRA_THREAD_ID;
|
||||
|
||||
XID_STATE &xid_state= thd->transaction->xid_state;
|
||||
if (is_transactional)
|
||||
|
@ -2930,7 +2934,10 @@ Gtid_log_event::peek(const uchar *event_start, size_t event_len,
|
|||
bool
|
||||
Gtid_log_event::write(Log_event_writer *writer)
|
||||
{
|
||||
uchar buf[GTID_HEADER_LEN+2+sizeof(XID) + /* flags_extra: */ 1+4];
|
||||
uchar buf[GTID_HEADER_LEN + 2 + sizeof(XID)
|
||||
+ 1 /* flags_extra: */
|
||||
+ 4 /* Extra Engines */
|
||||
+ 4 /* FL_EXTRA_THREAD_ID */];
|
||||
size_t write_len= 13;
|
||||
|
||||
int8store(buf, seq_no);
|
||||
|
@ -2971,6 +2978,12 @@ Gtid_log_event::write(Log_event_writer *writer)
|
|||
write_len+= 8;
|
||||
}
|
||||
|
||||
if (flags_extra & FL_EXTRA_THREAD_ID)
|
||||
{
|
||||
int4store(buf + write_len, thread_id);
|
||||
write_len+= 4;
|
||||
}
|
||||
|
||||
if (write_len < GTID_HEADER_LEN)
|
||||
{
|
||||
bzero(buf+write_len, GTID_HEADER_LEN-write_len);
|
||||
|
@ -3061,6 +3074,7 @@ Gtid_log_event::do_apply_event(rpl_group_info *rgi)
|
|||
thd->variables.server_id= this->server_id;
|
||||
thd->variables.gtid_domain_id= this->domain_id;
|
||||
thd->variables.gtid_seq_no= this->seq_no;
|
||||
thd->variables.pseudo_thread_id= this->thread_id;
|
||||
rgi->gtid_ev_flags2= flags2;
|
||||
|
||||
rgi->gtid_ev_flags_extra= flags_extra;
|
||||
|
|
Loading…
Add table
Reference in a new issue