Skip to content

Commit

Permalink
MDEV-9944 - main.events_2 fails sporadically
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Sergey Vojtovich committed Apr 19, 2016
1 parent 6fd54c0 commit 18ff6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql-test/t/events_2.test
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ select /*2*/ user, host, db, command, state, info
select release_lock("test_lock2");
drop event закачка;

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


Expand Down

0 comments on commit 18ff6f6

Please sign in to comment.