summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 422b7943aa9..c708ed6d2f9 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -622,6 +622,10 @@ struct ilink
{
DBUG_ASSERT(prev != 0 && next != 0);
}
+ inline void assert_not_linked()
+ {
+ DBUG_ASSERT(prev == 0 && next == 0);
+ }
virtual ~ilink() { unlink(); } /*lint -e1740 */
};