16 #include "my_global.h" 
   17 #include "my_pthread.h" 
   18 #include "table_accounts.h" 
   24 THR_LOCK table_accounts::m_table_lock;
 
   29     { C_STRING_WITH_LEN(
"USER") },
 
   30     { C_STRING_WITH_LEN(
"char(16)") },
 
   34     { C_STRING_WITH_LEN(
"HOST") },
 
   35     { C_STRING_WITH_LEN(
"char(60)") },
 
   39     { C_STRING_WITH_LEN(
"CURRENT_CONNECTIONS") },
 
   40     { C_STRING_WITH_LEN(
"bigint(20)") },
 
   44     { C_STRING_WITH_LEN(
"TOTAL_CONNECTIONS") },
 
   45     { C_STRING_WITH_LEN(
"bigint(20)") },
 
   51 table_accounts::m_field_def=
 
   57   { C_STRING_WITH_LEN(
"accounts") },
 
   61   table_accounts::delete_all_rows,
 
   76 table_accounts::delete_all_rows(
void)
 
   88 table_accounts::table_accounts()
 
  120   if (unlikely(! m_row_exists))
 
  121     return HA_ERR_RECORD_DELETED;
 
  124   DBUG_ASSERT(table->s->null_bytes == 1);
 
  127   for (; (f= *fields) ; fields++)
 
  129     if (read_all || bitmap_is_set(table->read_set, f->field_index))
 
  131       switch(f->field_index)