summaryrefslogtreecommitdiff
path: root/support-files/MySQL-shared-compat.spec.sh
diff options
context:
space:
mode:
authordlenev@mockturtle.local <>2007-08-05 13:17:07 +0400
committerdlenev@mockturtle.local <>2007-08-05 13:17:07 +0400
commita43431b3a1118154ec9b853d8909f3f2ddfecde9 (patch)
tree86364afe43aa1a0f893b88396a5685909fd53c83 /support-files/MySQL-shared-compat.spec.sh
parentd63d8cb1a3c3a3365e9d1705a98b2701e5d4a86c (diff)
downloadmariadb-git-a43431b3a1118154ec9b853d8909f3f2ddfecde9.tar.gz
Fix for bug #21281 "Pending write lock is incorrectly removed when its
statement being KILLed". When statement which was trying to obtain write lock on then table and which was blocked by existing read lock was killed, concurrent statements that were trying to obtain read locks on the same table and that were blocked by the presence of this pending write lock were not woken up and had to wait until this first read lock goes away. This problem was caused by the fact that we forgot to wake up threads which pending requests could have been satisfied after removing lock request for the killed thread. The patch solves the problem by waking up those threads in such situation. Test for this bug will be added to 5.1 only as it has much better facilities for its implementation. Particularly, by using I_S.PROCESSLIST and wait_condition.inc script we can wait until thread will be blocked on certain table lock without relying on unconditional sleep (which usage increases time needed for test runs and might cause spurious test failures on slower platforms).
Diffstat (limited to 'support-files/MySQL-shared-compat.spec.sh')
0 files changed, 0 insertions, 0 deletions