Commit 74aef87c authored by Sergei Golubchik's avatar Sergei Golubchik

fix the method name

it's always assert_<statement>,
not <do something>_if_<condition>
parent 725ce0fe
......@@ -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);
......
......@@ -660,7 +660,7 @@ struct ilink
if (next) next->prev=prev;
prev=0 ; next=0;
}
inline void assert_if_linked()
inline void assert_linked()
{
DBUG_ASSERT(prev != 0 && next != 0);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment