diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2011-04-13 08:23:10 -0300 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2011-04-13 08:23:10 -0300 |
commit | 8b22d8c2ecb77336427eadb957669a3f0ef89513 (patch) | |
tree | 9accf0ce124e2e197fb099ea1d974012e33470d3 /sql/sql_plist.h | |
parent | d3b7a0f7ae8a15b5c37250e49d0aa0eb26e9aa90 (diff) | |
download | mariadb-git-8b22d8c2ecb77336427eadb957669a3f0ef89513.tar.gz |
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.
Diffstat (limited to 'sql/sql_plist.h')
-rw-r--r-- | sql/sql_plist.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |