~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/status_helper.cc

  • Committer: Monty Taylor
  • Date: 2010-10-07 05:19:48 UTC
  • mto: (1821.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1822.
  • Revision ID: mordred@inaugust.com-20101007051948-woxgvqo7fr47yp22
TurnedĀ onĀ -Werror.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
#include <sstream>
29
29
 
 
30
using namespace drizzled;
30
31
using namespace std;
31
32
 
32
 
namespace drizzled
33
 
{
34
 
 
35
 
extern uint64_t refresh_version;
36
 
extern time_t server_start_time;
37
 
extern time_t flush_status_time;
38
 
 
39
33
static int show_starttime_new(drizzle_show_var *var, char *buff)
40
34
{
41
35
  var->type= SHOW_LONG;
162
156
  {"Select_range",              (char*) offsetof(system_status_var, select_range_count), SHOW_LONGLONG_STATUS},
163
157
  {"Select_range_check",        (char*) offsetof(system_status_var, select_range_check_count), SHOW_LONGLONG_STATUS},
164
158
  {"Select_scan",               (char*) offsetof(system_status_var, select_scan_count), SHOW_LONGLONG_STATUS},
165
 
  {"Sessions_connected",         (char*) &show_connection_count_cont_new,  SHOW_FUNC},
166
159
  {"Slow_queries",              (char*) offsetof(system_status_var, long_query_count), SHOW_LONGLONG_STATUS},
167
160
  {"Sort_merge_passes",         (char*) offsetof(system_status_var, filesort_merge_passes), SHOW_LONGLONG_STATUS},
168
161
  {"Sort_range",                (char*) offsetof(system_status_var, filesort_range_count), SHOW_LONGLONG_STATUS},
170
163
  {"Sort_scan",                 (char*) offsetof(system_status_var, filesort_scan_count), SHOW_LONGLONG_STATUS},
171
164
  {"Table_locks_immediate",     (char*) &current_global_counters.locks_immediate,        SHOW_LONGLONG},
172
165
  {"Table_locks_waited",        (char*) &current_global_counters.locks_waited,           SHOW_LONGLONG},
 
166
  {"Threads_connected",         (char*) &show_connection_count_cont_new,  SHOW_FUNC},
173
167
  {"Uptime",                    (char*) &show_starttime_cont_new,         SHOW_FUNC},
174
168
  {"Uptime_since_flush_status", (char*) &show_flushstatustime_cont_new,   SHOW_FUNC},
175
169
  {NULL, NULL, SHOW_LONGLONG}
176
170
};
177
 
 
178
 
} /* namespace drizzled */