~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 12:07:34 UTC
  • mto: (2247.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2248.
  • Revision ID: olafvdspek@gmail.com-20110323120734-adgne8jcxj3slos2
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
    }