Skip to content

Commit 18ff6f6

Browse files
committed
MDEV-9944 - main.events_2 fails sporadically
Fixed wait condition in test case to actually wait for get_lock() completion (not for lock acquisition as it was before). This removes sporadic extra row in subsequent processlist queries.
1 parent 6fd54c0 commit 18ff6f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mysql-test/t/events_2.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ select /*2*/ user, host, db, command, state, info
6767
select release_lock("test_lock2");
6868
drop event закачка;
6969

70-
# Wait for release_lock("test_lock2") to complete,
70+
# Wait for get_lock("test_lock2") to complete,
7171
# to avoid polluting the next test information_schema.processlist
7272
let $wait_condition= select count(*) = 0 from information_schema.processlist
73-
where (state like 'User lock%' AND info like 'select get_lock%');
73+
where info='select get_lock("test_lock2", 20)';
7474
--source include/wait_condition.inc
7575

7676

0 commit comments

Comments
 (0)