~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Lee Bieber
  • Date: 2011-03-23 22:07:25 UTC
  • mfrom: (2246.4.6 foreach)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: kalebral@gmail.com-20110323220725-0whqef7r72kv7tox
Merge Olaf - Use BOOST_FOREACH

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
          after the call to Session::close_old_data_files() i.e. after removal of
223
223
          current thread locks.
224
224
        */
225
 
        for (table::CacheMap::const_iterator iter= table::getCache().begin();
226
 
             iter != table::getCache().end();
227
 
             iter++)
 
225
        BOOST_FOREACH(table::CacheMap::const_reference iter, table::getCache())
228
226
        {
229
 
          Table *table= iter->second;
230
 
          if (table->in_use)
231
 
            table->in_use->some_tables_deleted= false;
 
227
          if (iter.second->in_use)
 
228
            iter.second->in_use->some_tables_deleted= false;
232
229
        }
233
230
      }
234
231
    }