diff options
author | Dmitry Lenev <dlenev@mysql.com> | 2010-06-11 17:32:12 +0400 |
---|---|---|
committer | Dmitry Lenev <dlenev@mysql.com> | 2010-06-11 17:32:12 +0400 |
commit | a6cfec17e5bceb298e09dc0474597f1ee4593652 (patch) | |
tree | e783a27fb35779b893187e59059a4eac34603ac5 /sql/sql_udf.cc | |
parent | 262bf59a2dc7ca1eed75f0e1ec93ec5e5182f2f9 (diff) | |
download | mariadb-git-a6cfec17e5bceb298e09dc0474597f1ee4593652.tar.gz |
Fix for bug #46785 "main.truncate_coverage fails
sporadically".
Races in truncate_coverage.test have caused its sporadical
failures.
In the test case we have tried to kill truncate statement
being executed in the first connection which was waiting
for X metadata lock on table being locked by the second
connection. Since we have released metadata lock held by
the second connection right after issuing KILL statement
sometimes TRUNCATE TABLE managed to acquire X lock before
it has noticed that it was killed. In this case TRUNCATE
TABLE was successfully executed till its end and this fact
has caused test failure since this statement didn't return
expected error in such case.
This patch addresses the problem by not releasing metadata
locks in the second connections prematurely.
Diffstat (limited to 'sql/sql_udf.cc')
0 files changed, 0 insertions, 0 deletions