Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs committed Jan 8, 2020
1 parent b365b6e commit cba9ed1
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions storage/innobase/include/dyn0buf.h
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,7 @@ class mtr_buf_t {
#ifdef UNIV_DEBUG
ulint total_size = 0;

for (typename list_t::iterator it = m_list.begin(),
end = m_list.end();
for (list_t::iterator it = m_list.begin(), end = m_list.end();
it != end; ++it) {
total_size += it->used();
}
Expand All @@ -320,8 +319,7 @@ class mtr_buf_t {
template <typename Functor>
bool for_each_block(Functor& functor) const
{
for (typename list_t::iterator it = m_list.begin(),
end = m_list.end();
for (list_t::iterator it = m_list.begin(), end = m_list.end();
it != end; ++it) {

if (!functor(&*it)) {
Expand All @@ -338,8 +336,8 @@ class mtr_buf_t {
template <typename Functor>
bool for_each_block_in_reverse(Functor& functor) const
{
for (typename list_t::reverse_iterator it = m_list.rbegin(),
end = m_list.rend();
for (list_t::reverse_iterator it = m_list.rbegin(),
end = m_list.rend();
it != end; ++it) {

if (!functor(&*it)) {
Expand All @@ -356,8 +354,8 @@ class mtr_buf_t {
template <typename Functor>
bool for_each_block_in_reverse(const Functor& functor) const
{
for (typename list_t::reverse_iterator it = m_list.rbegin(),
end = m_list.rend();
for (list_t::reverse_iterator it = m_list.rbegin(),
end = m_list.rend();
it != end; ++it) {

if (!functor(&*it)) {
Expand Down Expand Up @@ -425,8 +423,7 @@ class mtr_buf_t {
{
ut_ad(!m_list.empty());

for (typename list_t::iterator it = m_list.begin(),
end = m_list.end();
for (list_t::iterator it = m_list.begin(), end = m_list.end();
it != end; ++it) {

if (pos < it->used()) {
Expand Down

0 comments on commit cba9ed1

Please sign in to comment.