summaryrefslogtreecommitdiff
path: root/sql/sql_list.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-03-04 18:16:10 +0200
committermonty@mysql.com <>2004-03-04 18:16:10 +0200
commitb9c4ee353df8eb5257202fac419298b469e624e3 (patch)
tree23e1c598bde21cc2cb86a6228f23c9965a8633f5 /sql/sql_list.h
parent9c4b9e6df1576fad4fa2cb7e89da2614c282449f (diff)
downloadmariadb-git-b9c4ee353df8eb5257202fac419298b469e624e3.tar.gz
Rollback UPDATE/DELETE statements on kill
nsure that rows in a multi-row INSERT DELAYED are inserted atomicly
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r--sql/sql_list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h
index 102fbe8eb93..370642df2d0 100644
--- a/sql/sql_list.h
+++ b/sql/sql_list.h
@@ -322,6 +322,10 @@ class base_ilist
first_link->unlink(); // Unlink from list
return first_link;
}
+ inline struct ilink *head()
+ {
+ return (first != &last) ? first : 0;
+ }
friend class base_list_iterator;
};
@@ -353,6 +357,7 @@ public:
inline void append(T* a) { base_ilist::append(a); }
inline void push_back(T* a) { base_ilist::push_back(a); }
inline T* get() { return (T*) base_ilist::get(); }
+ inline T* head() { return (T*) base_ilist::head(); }
#ifndef _lint
friend class I_List_iterator<T>;
#endif