~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/table_cache_dictionary/table_cache.cc

  • Committer: Prafulla Tekawade
  • Date: 2010-07-06 15:51:58 UTC
  • mfrom: (1643 rollup)
  • mto: (1662.1.4 rollup)
  • mto: This revision was merged to the branch mainline in revision 1664.
  • Revision ID: prafulla_t@users.sourceforge.net-20100706155158-yf8f947vbwlyai77
Merger from main branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
{
48
48
  pthread_mutex_lock(&LOCK_open); /* Optionally lock for remove tables from open_cahe if not in use */
49
49
 
50
 
  drizzled::HASH *open_cache=
51
 
    get_open_cache();
52
 
 
53
 
  for (uint32_t idx= 0; idx < open_cache->records; idx++ )
 
50
  for (uint32_t idx= 0; idx < get_open_cache().records; idx++ )
54
51
  {
55
 
    table= (Table*) hash_element(open_cache, idx);
 
52
    table= (Table*) hash_element(&get_open_cache(), idx);
56
53
    table_list.push_back(table);
57
54
  }
58
55
  std::sort(table_list.begin(), table_list.end(), Table::compare);