mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 11:31:51 +01:00
branches/5.1:
Fix a non-determinism in innodb_bug38231. Reported by: Sergey Vojtovich <svoj@Sun.COM>
This commit is contained in:
parent
4fcebfd3be
commit
53c27178bd
1 changed files with 15 additions and 0 deletions
|
@ -27,6 +27,21 @@ SET autocommit=0;
|
||||||
-- send
|
-- send
|
||||||
LOCK TABLE bug38231 WRITE;
|
LOCK TABLE bug38231 WRITE;
|
||||||
|
|
||||||
|
# When con1 does UNLOCK below this will release either con2 or con3 which are
|
||||||
|
# both waiting on LOCK. At the end we must first --reap and UNLOCK the
|
||||||
|
# connection that has been released, otherwise it will wait forever. We assume
|
||||||
|
# that the released connection will be the first one that has gained the LOCK,
|
||||||
|
# thus we force the order here - con2 does LOCK first, then con3. In other
|
||||||
|
# words we wait for LOCK from con2 above to be exected before doing LOCK in
|
||||||
|
# con3.
|
||||||
|
-- connection con1
|
||||||
|
let $wait_condition =
|
||||||
|
SELECT COUNT(*) = 1 FROM information_schema.processlist
|
||||||
|
WHERE info = 'LOCK TABLE bug38231 WRITE';
|
||||||
|
-- source include/wait_condition.inc
|
||||||
|
# the above enables query log, re-disable it
|
||||||
|
-- disable_query_log
|
||||||
|
|
||||||
-- connection con3
|
-- connection con3
|
||||||
SET autocommit=0;
|
SET autocommit=0;
|
||||||
-- send
|
-- send
|
||||||
|
|
Loading…
Add table
Reference in a new issue