-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-32844: THD::rli_fake/rgi_fake not cleared on new connection
Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
- Loading branch information
Showing
3 changed files
with
38 additions
and
11 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
mysql-test/suite/sys_vars/r/pseudo_slave_mode_notembedded.result
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,14 @@ | ||
'### MDEV-32844: THD::rli_fake/rgi_fake not cleared on new connection' | ||
connect con1,localhost,root,,; | ||
BINLOG ' | ||
6ENbZQ8BAAAA/AAAAAABAAAAAAQAMTAuMTEuNi1NYXJpYURCLWRlYnVnLWxvZwAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAADoQ1tlEzgNAAgAEgAEBAQEEgAA5AAEGggAAAAICAgCAAAACgoKAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAEEwQADQgICAoKCgGbvv33 | ||
'; | ||
disconnect con1; | ||
connect con1,localhost,root,,; | ||
SET SESSION pseudo_slave_mode= 1; | ||
disconnect con1; | ||
connection default; |
20 changes: 20 additions & 0 deletions
20
mysql-test/suite/sys_vars/t/pseudo_slave_mode_notembedded.test
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,20 @@ | ||
--source include/not_embedded.inc | ||
--source include/load_sysvars.inc | ||
|
||
--echo '### MDEV-32844: THD::rli_fake/rgi_fake not cleared on new connection' | ||
--connect(con1,localhost,root,,) | ||
BINLOG ' | ||
6ENbZQ8BAAAA/AAAAAABAAAAAAQAMTAuMTEuNi1NYXJpYURCLWRlYnVnLWxvZwAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAADoQ1tlEzgNAAgAEgAEBAQEEgAA5AAEGggAAAAICAgCAAAACgoKAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
AAAAAAAAAAAEEwQADQgICAoKCgGbvv33 | ||
'; | ||
--disconnect con1 | ||
--connect(con1,localhost,root,,) | ||
# The bug was that the THD::rli_fake was not cleared when the THD is re-used | ||
# for the new connection, and we would get a warning from the following | ||
# statement. | ||
SET SESSION pseudo_slave_mode= 1; | ||
--disconnect con1 | ||
--connection default |
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