mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 06:45:32 +02:00
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.
This commit is contained in:
parent
d3b7a0f7ae
commit
8b22d8c2ec
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue