From 475c4f7bed8a75b67ed1f478c7bbea23cc7bb0d3 Mon Sep 17 00:00:00 2001 From: Davi Arnaut Date: Wed, 13 Apr 2011 08:23:10 -0300 Subject: [PATCH] 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(+) 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)