Skip to content

Commit 0f73979

Browse files
author
Andrei Elkin
committed
Bug #49740 rpl.rpl_temporary fails in PB2 in mysql-trunk-merge
The test allowed random coincidence of connection ids for two concurrent sessions performing CREATE/DROP temp tables. Fixed with correcting the test. The sessions connection ids are not changed from their defaults anymore.
1 parent 801deed commit 0f73979

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mysql-test/r/rpl_temporary.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ ERROR 42000: Access denied; you need the SUPER privilege for this operation
1616
SELECT @@session.sql_select_limit = @save_select_limit;
1717
@@session.sql_select_limit = @save_select_limit
1818
1
19+
SET @save_conn_id= connection_id();
1920
SET @@session.pseudo_thread_id=100;
2021
SET @@session.pseudo_thread_id=connection_id();
22+
SET @@session.pseudo_thread_id=@save_conn_id;
2123
SET @@session.sql_log_bin=0;
2224
SET @@session.sql_log_bin=1;
2325
drop table if exists t1,t2;

mysql-test/t/rpl_temporary.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ SET @@session.sql_select_limit=10, @@session.sql_log_bin=0;
4141
SELECT @@session.sql_select_limit = @save_select_limit; #shouldn't have changed
4242
# Now as root, to be sure it works
4343
connection con2;
44+
SET @save_conn_id= connection_id();
4445
SET @@session.pseudo_thread_id=100;
4546
SET @@session.pseudo_thread_id=connection_id();
47+
SET @@session.pseudo_thread_id=@save_conn_id;
4648
SET @@session.sql_log_bin=0;
4749
SET @@session.sql_log_bin=1;
4850

0 commit comments

Comments
 (0)