~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-07-16 22:37:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1100.
  • Revision ID: brian@gaz-20090716223701-vbbbo8dmgd2ljqqo
Refactor TableShare has to be behind class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2079
2079
 
2080
2080
  key_length= table_list.create_table_def_key(key);
2081
2081
  pthread_mutex_lock(&LOCK_open); /* Locking to get table share when filling schema table from FRM */
2082
 
  share= get_table_share(session, &table_list, key,
2083
 
                         key_length, 0, &error);
 
2082
  share= TableShare::getShare(session, &table_list, key, key_length, 0, &error);
2084
2083
  if (!share)
2085
2084
  {
2086
2085
    res= 0;
2096
2095
  /* For the moment we just set everything to read */
2097
2096
  table->setReadSet();
2098
2097
 
2099
 
  release_table_share(share);
 
2098
  TableShare::release(share);
2100
2099
 
2101
2100
err:
2102
2101
  pthread_mutex_unlock(&LOCK_open);