Skip to content

Commit 261b297

Browse files
author
Sujatha Sivakumar
committed
Bug#20001173: RPL P_S: MOVE SQL THREAD STATUS TO WORKER TABLE
Post push improved fix.
1 parent 1280e43 commit 261b297

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sql/sql_class.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4505,9 +4505,11 @@ void THD::set_currently_executing_gtid_for_slave_thread()
45054505
BINLOG statement containing a Format_description_log_event
45064506
originating from the master.
45074507
4508-
Because of the last case, we don't assert(is_mts_worker())
4508+
Because of the last case, we need to add the following conditions to set
4509+
currently_executing_gtid.
45094510
*/
4510-
if (system_thread)
4511+
if (system_thread == SYSTEM_THREAD_SLAVE_SQL ||
4512+
system_thread == SYSTEM_THREAD_SLAVE_WORKER)
45114513
rli_slave->currently_executing_gtid= variables.gtid_next;
45124514
}
45134515
#endif

0 commit comments

Comments
 (0)