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 718306c2193..113af35bad7 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -650,6 +650,10 @@ struct ilink
if (next) next->prev=prev;
prev=0 ; next=0;
}
+ inline void assert_if_linked()
+ {
+ DBUG_ASSERT(prev != 0 && next != 0);
+ }
virtual ~ilink() { unlink(); } /*lint -e1740 */
};