summaryrefslogtreecommitdiff
path: root/mysql-test/t/failed_auth_unixsocket.test
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2014-10-31 12:48:17 +0100
committerKristian Nielsen <knielsen@knielsen-hq.org>2014-10-31 12:48:17 +0100
commitbad5fdec1843527fbbf87ef5e6f82519ffef3935 (patch)
tree1d15234ccb0ec16ea186078995bc6c942c512c6b /mysql-test/t/failed_auth_unixsocket.test
parent52fb08ac31baef24ca5f5f3b62ccbfcb9f0d083b (diff)
downloadmariadb-git-bad5fdec1843527fbbf87ef5e6f82519ffef3935.tar.gz
Fix sporadic test failure in main.processlist
The test runs a query in one thread, then in another queries the processlist and expects to find the first thread in the COM_SLEEP state. The problem is that the thread signals completion to the client before changing to COM_SLEEP state, so there is a window where the other thread can see the wrong state. A previous attempt to fix this was ineffective. It set a DEBUG_SYNC to handle proper waiting, but unfortunately that DEBUG_SYNC point ended up triggering already at the end of SET DEBUG_SYNC=xxx, so the wait was ineffective. Fix it properly now (hopefully) by ensuring that we wait for the DEBUG_SYNC point to trigger at the end of the SELECT SLEEP(), not just at the end of SET DEBUG_SYNC=xxx.
Diffstat (limited to 'mysql-test/t/failed_auth_unixsocket.test')
0 files changed, 0 insertions, 0 deletions