~jaypipes/drizzle/replication-to-transaction

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Brian Aker
  • Date: 2010-03-09 22:42:17 UTC
  • mto: This revision was merged to the branch mainline in revision 1330.
  • Revision ID: brian@gaz-20100309224217-7b3y81mpb2r0xhdz
Overhaul of SHOW TABLE STATUS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
  return (unsigned char*) entry->s->table_cache_key.str;
87
87
}
88
88
 
 
89
HASH *get_open_cache()
 
90
{
 
91
  return &open_cache;
 
92
}
 
93
 
89
94
 
90
95
bool table_cache_init(void)
91
96
{
100
105
  refresh_version++;                            // Force close of open tables
101
106
 
102
107
  while (unused_tables)
103
 
    hash_delete(&open_cache,(unsigned char*) unused_tables);
 
108
    hash_delete(&open_cache, (unsigned char*) unused_tables);
104
109
 
105
 
  if (!open_cache.records)                      // Safety first
 
110
  if (not open_cache.records)                   // Safety first
106
111
    hash_free(&open_cache);
107
112
}
108
113
 
189
194
{
190
195
  Table *table= static_cast<Table *>(entry);
191
196
  table->intern_close_table();
192
 
  if (!table->in_use)
 
197
  if (not table->in_use)
193
198
  {
194
199
    table->next->prev=table->prev;              /* remove from used chain */
195
200
    table->prev->next=table->next;