~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_stats/stats_table.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-11-26 03:47:13 UTC
  • mto: (1228.4.1 push)
  • mto: This revision was merged to the branch mainline in revision 1234.
  • Revision ID: osullivan.padraig@gmail.com-20091126034713-qozlea5ib13ibqtp
Modified the fillTable method to not take a TableList parameter anymore. Instead we now take a Table
and an InfoSchemaTable parameter. This should allow us to get rid of the schema_table member of the
TableList class a bit easier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
using namespace drizzled;
44
44
 
45
45
int MemcachedStatsISMethods::fillTable(Session *,
46
 
                                       TableList *tables)
 
46
                                       Table *table,
 
47
                                       plugin::InfoSchemaTable *schema_table)
47
48
{
48
49
  const CHARSET_INFO * const scs= system_charset_info;
49
 
  Table *table= tables->table;
50
50
  SysvarHolder &sysvar_holder= SysvarHolder::singleton();
51
51
  const string servers_string= sysvar_holder.getServersString();
52
52
 
82
82
    }
83
83
    free(list);
84
84
    /* store the actual record now */
85
 
    tables->schema_table->addRow(table->record[0], table->s->reclength);
 
85
    schema_table->addRow(table->record[0], table->s->reclength);
86
86
  }
87
87
 
88
88
  memcached_stat_free(serv, stats);