2018-03-09 14:39:40 +01:00
|
|
|
#
|
|
|
|
# MDEV-15477: SESSION_SYSVARS_TRACKER does not track last_gtid
|
|
|
|
#
|
|
|
|
SET gtid_seq_no=1000;
|
|
|
|
SET @@session.session_track_system_variables='last_gtid';
|
|
|
|
create table t1 (a int) engine=innodb;
|
|
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
2024-09-20 08:28:55 +02:00
|
|
|
-- last_gtid: 0-1-1000
|
2018-03-09 14:39:40 +01:00
|
|
|
|
|
|
|
select @@last_gtid;
|
|
|
|
@@last_gtid
|
|
|
|
0-1-1000
|
|
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
2024-09-20 08:28:55 +02:00
|
|
|
-- last_gtid: 0-1-1000
|
2018-03-09 14:39:40 +01:00
|
|
|
|
|
|
|
insert into t1 values (1);
|
|
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
2024-09-20 08:28:55 +02:00
|
|
|
-- last_gtid: 0-1-1001
|
2018-03-09 14:39:40 +01:00
|
|
|
|
|
|
|
select @@last_gtid;
|
|
|
|
@@last_gtid
|
|
|
|
0-1-1001
|
|
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
2024-09-20 08:28:55 +02:00
|
|
|
-- last_gtid: 0-1-1001
|
2018-03-09 14:39:40 +01:00
|
|
|
|
|
|
|
drop table t1;
|
|
|
|
-- Tracker : SESSION_TRACK_SYSTEM_VARIABLES
|
2024-09-20 08:28:55 +02:00
|
|
|
-- last_gtid: 0-1-1002
|
2018-03-09 14:39:40 +01:00
|
|
|
|
2022-02-03 14:21:29 +01:00
|
|
|
reset master;
|
2024-10-06 17:06:07 +02:00
|
|
|
#
|
|
|
|
# MDEV-35086 Trying to lock mutex when the mutex was already locked (session_tracker.cc), server hangs
|
|
|
|
#
|
|
|
|
set session_track_system_variables='*';
|
|
|
|
alter table t1 nowait force;
|
|
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
|
|
|
use mysql;
|
|
|
|
set session_track_system_variables=default;
|
|
|
|
# End of 10.5 tests
|