diff --git a/mysql-test/main/flush_read_lock.result b/mysql-test/main/flush_read_lock.result index be710050139..f7fca14506e 100644 --- a/mysql-test/main/flush_read_lock.result +++ b/mysql-test/main/flush_read_lock.result @@ -1391,9 +1391,11 @@ 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; # Switching to connection 'con1'. connection con1; +set debug_sync='now WAIT_FOR detached'; flush tables with read lock; # Switching to connection 'default'. connection default; diff --git a/mysql-test/main/flush_read_lock.test b/mysql-test/main/flush_read_lock.test index 4283358770c..9d60aba58ba 100644 --- a/mysql-test/main/flush_read_lock.test +++ b/mysql-test/main/flush_read_lock.test @@ -1698,9 +1698,11 @@ 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; --echo # Switching to connection '$con_aux1'. connection $con_aux1; +set debug_sync='now WAIT_FOR detached'; flush tables with read lock; --echo # Switching to connection 'default'. connection default;