1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

fix the method name

it's always assert_<statement>,
not <do something>_if_<condition>
This commit is contained in:
Sergei Golubchik
2016-05-09 16:37:50 +02:00
parent 725ce0fe84
commit 74aef87c5e
2 changed files with 3 additions and 3 deletions

View File

@@ -4084,12 +4084,12 @@ inline void add_to_active_threads(THD *thd)
/*
This should be called when you want to delete a thd that was not
running any queries.
This function will assert if the THD was not linked.
This function will assert that the THD is linked.
*/
inline void unlink_not_visible_thd(THD *thd)
{
thd->assert_if_linked();
thd->assert_linked();
mysql_mutex_lock(&LOCK_thread_count);
thd->unlink();
mysql_mutex_unlock(&LOCK_thread_count);