mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Revert "MDEV-7850: Extend GTID Binlog Events with Thread Id"
This reverts commit c37b2087b4
.
In c37b20887, when re-binlogging a GTID event on a replica,
it will overwrite the thread_id from the primary to be the
value of the slave applier (SQL thread or parallel worker).
This should be the value of the original thread_id on the
master connection though, to both help track temporary
tables, and be consistent with Query_log_event.
Reverting the commit to re-target 11.5, so we can re-test
with the corrected thread_id.
This commit is contained in:
@@ -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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# ddl
|
||||
/* GTID */ ALTER TABLE t1 ADD c INT
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 thread_id=#
|
||||
# server id 1 end_log_pos # CRC32 0x######## GTID #-#-# trans
|
||||
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 #
|
||||
|
Reference in New Issue
Block a user