summaryrefslogtreecommitdiff
path: root/mysql-test/main/flush_read_lock.test
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-05-22 19:10:56 +0300
committerMonty <monty@mariadb.org>2020-05-23 12:29:10 +0300
commitfc8359f0ac7764aa70b2e415da604e2ff0581628 (patch)
tree1cdcd31d0c1b5881b77ad05d16bece47470ca902 /mysql-test/main/flush_read_lock.test
parentc779ef26b6eed4c9305218d340593fcadab0a47b (diff)
downloadmariadb-git-fc8359f0ac7764aa70b2e415da604e2ff0581628.tar.gz
Fixed failure in flush_read_lock.test
The failure was: mysqltest: At line 1737: query 'reap' failed: 1397: XAER_NOTA: Unknown XID The bug was in the test case int that it executed REAP XA COMMIT before the connection had truly disconnected
Diffstat (limited to 'mysql-test/main/flush_read_lock.test')
-rw-r--r--mysql-test/main/flush_read_lock.test2
1 files changed, 2 insertions, 0 deletions
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;