| 1 |
--source include/not_embedded.inc |
| 2 |
--source include/load_sysvars.inc |
| 3 |
|
| 4 |
--echo '### MDEV-32844: THD::rli_fake/rgi_fake not cleared on new connection' |
| 5 |
--connect(con1,localhost,root,,) |
| 6 |
BINLOG ' |
| 7 |
6ENbZQ8BAAAA/AAAAAABAAAAAAQAMTAuMTEuNi1NYXJpYURCLWRlYnVnLWxvZwAAAAAAAAAAAAAA |
| 8 |
AAAAAAAAAAAAAAAAAADoQ1tlEzgNAAgAEgAEBAQEEgAA5AAEGggAAAAICAgCAAAACgoKAAAAAAAA |
| 9 |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| 10 |
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| 11 |
AAAAAAAAAAAEEwQADQgICAoKCgGbvv33 |
| 12 |
'; |
| 13 |
--disconnect con1 |
| 14 |
--connect(con1,localhost,root,,) |
| 15 |
# The bug was that the THD::rli_fake was not cleared when the THD is re-used |
| 16 |
# for the new connection, and we would get a warning from the following |
| 17 |
# statement. |
| 18 |
SET SESSION pseudo_slave_mode= 1; |
| 19 |
--disconnect con1 |
| 20 |
--connection default |