~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2010-03-16 01:56:17 UTC
  • Revision ID: brian@gaz-20100316015617-coiymspp7u87x9wf
Corrections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
970
970
  return 0;
971
971
}
972
972
 
973
 
static int show_open_tables(drizzle_show_var *var, char *buff)
974
 
{
975
 
  var->type= SHOW_LONG;
976
 
  var->value= buff;
977
 
  *((long *)buff)= (long)cached_open_tables();
978
 
  return 0;
979
 
}
980
 
 
981
 
static int show_table_definitions(drizzle_show_var *var, char *buff)
982
 
{
983
 
  var->type= SHOW_LONG;
984
 
  var->value= buff;
985
 
  *((long *)buff)= (long)cached_table_definitions();
986
 
  return 0;
987
 
}
988
 
 
989
 
static st_show_var_func_container
990
 
show_open_tables_cont= { &show_open_tables };
991
 
static st_show_var_func_container
992
 
show_table_definitions_cont= { &show_table_definitions };
993
 
static st_show_var_func_container
994
 
show_starttime_cont= { &show_starttime };
995
 
static st_show_var_func_container
996
 
show_flushstatustime_cont= { &show_flushstatustime };
 
973
static st_show_var_func_container show_starttime_cont= { &show_starttime };
 
974
 
 
975
static st_show_var_func_container show_flushstatustime_cont= { &show_flushstatustime };
997
976
 
998
977
/*
999
978
  Variables shown by SHOW STATUS in alphabetical order
1072
1051
  {"Key_writes",               (char*) offsetof(KEY_CACHE, global_cache_write), SHOW_KEY_CACHE_LONGLONG},
1073
1052
  {"Last_query_cost",          (char*) offsetof(system_status_var, last_query_cost), SHOW_DOUBLE_STATUS},
1074
1053
  {"Max_used_connections",     (char*) &max_used_connections,  SHOW_INT},
1075
 
  {"Open_table_definitions",   (char*) &show_table_definitions_cont, SHOW_FUNC},
1076
 
  {"Open_tables",              (char*) &show_open_tables_cont,       SHOW_FUNC},
1077
 
  {"Opened_tables",            (char*) offsetof(system_status_var, opened_tables), SHOW_LONG_STATUS},
1078
 
  {"Opened_table_definitions", (char*) offsetof(system_status_var, opened_shares), SHOW_LONG_STATUS},
1079
1054
  {"Questions",                (char*) offsetof(system_status_var, questions), SHOW_LONG_STATUS},
1080
1055
  {"Select_full_join",         (char*) offsetof(system_status_var, select_full_join_count), SHOW_LONG_STATUS},
1081
1056
  {"Select_full_range_join",   (char*) offsetof(system_status_var, select_full_range_join_count), SHOW_LONG_STATUS},