Skip to content

Commit

Permalink
Merge 10.5 into 10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Apr 22, 2021
2 parents 8121d03 + 21973d0 commit 18f35a8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
11 changes: 7 additions & 4 deletions mysql-test/main/flush_read_lock.result
Original file line number Diff line number Diff line change
Expand Up @@ -1392,19 +1392,22 @@ insert into t3_trans values (1);
xa end 'test1';
xa prepare 'test1';
# Disconnect temporary connection
set debug_sync='thread_end SIGNAL test1_prepare';
disconnect con_tmp;
connection con1;
set debug_sync='now WAIT_FOR test1_prepare';
# Create temporary connection for XA transaction.
connect con_tmp,localhost,root,,;
connect con_tmp1,localhost,root,,;
xa start 'test2';
insert into t3_trans values (2);
xa end 'test2';
xa prepare 'test2';
# Disconnect temporary connection
set debug_sync='thread_end SIGNAL detached';
disconnect con_tmp;
set debug_sync='thread_end SIGNAL test2_prepare';
disconnect con_tmp1;
# Switching to connection 'con1'.
connection con1;
set debug_sync='now WAIT_FOR detached';
set debug_sync='now WAIT_FOR test2_prepare';
flush tables with read lock;
# Switching to connection 'default'.
connection default;
Expand Down
17 changes: 13 additions & 4 deletions mysql-test/main/flush_read_lock.test
Original file line number Diff line number Diff line change
Expand Up @@ -1703,25 +1703,34 @@ insert into t3_trans values (1);
xa end 'test1';
xa prepare 'test1';
--echo # Disconnect temporary connection
set debug_sync='thread_end SIGNAL test1_prepare';
disconnect con_tmp;
connection $con_aux1;
set debug_sync='now WAIT_FOR test1_prepare';


--echo # Create temporary connection for XA transaction.
connect (con_tmp,localhost,root,,);
connect (con_tmp1,localhost,root,,);
xa start 'test2';
insert into t3_trans values (2);
xa end 'test2';
xa prepare 'test2';
--echo # Disconnect temporary connection
set debug_sync='thread_end SIGNAL detached';
disconnect con_tmp;
set debug_sync='thread_end SIGNAL test2_prepare';
disconnect con_tmp1;


--echo # Switching to connection '$con_aux1'.
connection $con_aux1;
set debug_sync='now WAIT_FOR detached';
set debug_sync='now WAIT_FOR test2_prepare';
flush tables with read lock;

--echo # Switching to connection 'default'.
connection default;
--echo # Send XA ROLLBACK 'test1'
--send xa rollback 'test1'
--echo # Switching to connection '$con_aux1'.

connection $con_aux1;
--echo # Wait until XA ROLLBACK is blocked.
let $wait_condition=
Expand Down

0 comments on commit 18f35a8

Please sign in to comment.