~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-24 13:19:47 UTC
  • mto: (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2207.
  • Revision ID: olafvdspek@gmail.com-20110224131947-0fra5adn3kixp6v1
Use "iter->" instead of "(*iter)."

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
  for (CacheMap::const_iterator iter= ppp.first;
79
79
         iter != ppp.second; ++iter)
80
80
  {
81
 
    table::Concurrent *found_table= (*iter).second;
 
81
    table::Concurrent *found_table= iter->second;
82
82
 
83
83
    if (found_table == arg)
84
84
    {
105
105
 
106
106
    for (table::CacheMap::const_iterator iter= ppp.first; iter != ppp.second; ++iter)
107
107
    {
108
 
      Table *search= (*iter).second;
 
108
      Table *search= iter->second;
109
109
      if (search->in_use == table->in_use)
110
110
        continue;                               // Name locked by this thread
111
111
      /*
144
144
       iter != table::getCache().end();
145
145
       iter++)
146
146
  {
147
 
    table::Concurrent *table= (*iter).second;
 
147
    table::Concurrent *table= iter->second;
148
148
 
149
149
    if (not schema_identifier.getPath().compare(table->getShare()->getSchemaName()))
150
150
    {
188
188
    for (table::CacheMap::const_iterator iter= ppp.first;
189
189
         iter != ppp.second; ++iter)
190
190
    {
191
 
      table::Concurrent *table= (*iter).second;
 
191
      table::Concurrent *table= iter->second;
192
192
      Session *in_use;
193
193
 
194
194
      table->getMutableShare()->resetVersion();         /* Free when thread is ready */