~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/cache.cc

  • Committer: Brian Aker
  • Date: 2011-02-27 19:43:52 UTC
  • mfrom: (2192.4.9 iter)
  • Revision ID: brian@tangent.org-20110227194352-w48j3ey8nhonecsd
MergeĀ inĀ find_ptr

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 */