Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-15477: SESSION_SYSVARS_TRACKER does not track last_gtid
register changes of last_gtid
- Loading branch information
1 parent
73de63e
commit 517d718
Showing
9 changed files
with
92 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # | ||
| # 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 | ||
| -- last_gtid | ||
| -- 0-1-1000 | ||
|
|
||
| select @@last_gtid; | ||
| @@last_gtid | ||
| 0-1-1000 | ||
| -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES | ||
| -- last_gtid | ||
| -- 0-1-1000 | ||
|
|
||
| insert into t1 values (1); | ||
| -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES | ||
| -- last_gtid | ||
| -- 0-1-1001 | ||
|
|
||
| select @@last_gtid; | ||
| @@last_gtid | ||
| 0-1-1001 | ||
| -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES | ||
| -- last_gtid | ||
| -- 0-1-1001 | ||
|
|
||
| drop table t1; | ||
| -- Tracker : SESSION_TRACK_SYSTEM_VARIABLES | ||
| -- last_gtid | ||
| -- 0-1-1002 | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --source include/not_embedded.inc | ||
| --source include/have_innodb.inc | ||
| --source include/have_binlog_format_statement.inc | ||
|
|
||
| --enable_session_track_info | ||
|
|
||
| --echo # | ||
| --echo # MDEV-15477: SESSION_SYSVARS_TRACKER does not track last_gtid | ||
| --echo # | ||
|
|
||
| SET gtid_seq_no=1000; | ||
| SET @@session.session_track_system_variables='last_gtid'; | ||
| create table t1 (a int) engine=innodb; | ||
| select @@last_gtid; | ||
| insert into t1 values (1); | ||
| select @@last_gtid; | ||
| drop table t1; | ||
|
|
||
| --disable_session_track_info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters