mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge mysql.com:/home/hf/work/embt/my41-embt
into mysql.com:/home/hf/work/embt/my50-embt sql/item_func.cc: Auto merged mysql-test/t/innodb.test: merging libmysqld/lib_sql.cc: SCCS merged
This commit is contained in:
@ -3347,7 +3347,11 @@ longlong Item_func_release_lock::val_int()
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef EMBEDDED_LIBRARY
|
||||
if (ull->locked && pthread_equal(current_thd->real_id,ull->thread))
|
||||
#else
|
||||
if (ull->locked && pthread_equal(pthread_self(),ull->thread))
|
||||
#endif
|
||||
{
|
||||
result=1; // Release is ok
|
||||
item_user_lock_release(ull);
|
||||
|
Reference in New Issue
Block a user