mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
sql/item_func.cc
Improved check for thread identity in the "embedded" case,
provided by Monty.
This finishes the fixes for bug#27078.
This commit is contained in:
@@ -2243,7 +2243,7 @@ longlong Item_func_release_lock::val_int()
|
||||
else
|
||||
{
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
if (ull->locked && pthread_equal(current_thd->real_id,ull->thread))
|
||||
if (ull->locked && (current_thd->real_id == ull->thread))
|
||||
#else
|
||||
if (ull->locked && pthread_equal(pthread_self(),ull->thread))
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user