Skip to content

Commit 74aef87

Browse files
committed
fix the method name
it's always assert_<statement>, not <do something>_if_<condition>
1 parent 725ce0f commit 74aef87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/sql_class.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4084,12 +4084,12 @@ inline void add_to_active_threads(THD *thd)
40844084
/*
40854085
This should be called when you want to delete a thd that was not
40864086
running any queries.
4087-
This function will assert if the THD was not linked.
4087+
This function will assert that the THD is linked.
40884088
*/
40894089

40904090
inline void unlink_not_visible_thd(THD *thd)
40914091
{
4092-
thd->assert_if_linked();
4092+
thd->assert_linked();
40934093
mysql_mutex_lock(&LOCK_thread_count);
40944094
thd->unlink();
40954095
mysql_mutex_unlock(&LOCK_thread_count);

sql/sql_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ struct ilink
660660
if (next) next->prev=prev;
661661
prev=0 ; next=0;
662662
}
663-
inline void assert_if_linked()
663+
inline void assert_linked()
664664
{
665665
DBUG_ASSERT(prev != 0 && next != 0);
666666
}

0 commit comments

Comments
 (0)