From 8b22d8c2ecb77336427eadb957669a3f0ef89513 Mon Sep 17 00:00:00 2001 From: Davi Arnaut Date: Wed, 13 Apr 2011 08:23:10 -0300 Subject: Increment the I_P_List counter whenever a element is inserted into the list. Previously, the counter would only be incremented if the insertion method push_front() was used, in which case the counter wouldn't be incremented if a element was inserted using the push_back() and/or insert_after() methods. Currently this does not affect the code base because there isn't any code that uses a counted list with the push_back() or insert_after() methods. --- sql/sql_plist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/sql_plist.h') diff --git a/sql/sql_plist.h b/sql/sql_plist.h index 4395b9e4e8b..b71136cd9ab 100644 --- a/sql/sql_plist.h +++ b/sql/sql_plist.h @@ -95,6 +95,7 @@ public: *last= a; *B::prev_ptr(a)= last; I::set_last(B::next_ptr(a)); + C::inc(); } inline void insert_after(T *pos, T *a) { @@ -112,6 +113,7 @@ public: } else I::set_last(B::next_ptr(a)); + C::inc(); } } inline void remove(T *a) -- cgit v1.2.1