<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mariadb-git.git/mysql-test/t/udf_debug_sync.test, branch 10.2-merge</title>
<subtitle>github.com: MariaDB/server.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/'/>
<entry>
<title>MDEV-5616 - Deadlock between CREATE/DROP FUNCTION and SELECT from view</title>
<updated>2014-02-13T12:41:08+00:00</updated>
<author>
<name>Sergey Vojtovich</name>
<email>svoj@mariadb.org</email>
</author>
<published>2014-02-13T12:41:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=e2a99f1863a7a4d5d6d22c9f39de3b255c959f98'/>
<id>e2a99f1863a7a4d5d6d22c9f39de3b255c959f98</id>
<content type='text'>
Deadlock happened due to mixed lock order.
CREATE/DROP function: wrlock(THR_LOCK_udf) -&gt; lock(LOCK_open)
SELECT from view: lock(LOCK_open) -&gt; rdlock(THR_LOCK_udf)

Fixed CREATE/DROP function so that LOCK_open does not intersect with
wrlock(THR_LOCK_udf).

10.0 is not affected: it doesn't hold LOCK_open while opening view.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deadlock happened due to mixed lock order.
CREATE/DROP function: wrlock(THR_LOCK_udf) -&gt; lock(LOCK_open)
SELECT from view: lock(LOCK_open) -&gt; rdlock(THR_LOCK_udf)

Fixed CREATE/DROP function so that LOCK_open does not intersect with
wrlock(THR_LOCK_udf).

10.0 is not affected: it doesn't hold LOCK_open while opening view.
</pre>
</div>
</content>
</entry>
</feed>
