273
273
static bool initTable()
275
current_commands_tool= new(nothrow)CurrentCommandsTool(logging_stats);
277
if (! current_commands_tool)
282
cumulative_commands_tool= new(nothrow)CumulativeCommandsTool(logging_stats);
284
if (! cumulative_commands_tool)
289
global_statements_tool= new(nothrow)GlobalStatementsTool(logging_stats);
291
if (! global_statements_tool)
296
session_statements_tool= new(nothrow)SessionStatementsTool(logging_stats);
298
if (! session_statements_tool)
303
session_status_tool= new(nothrow)StatusTool(logging_stats, true);
305
if (! session_status_tool)
310
global_status_tool= new(nothrow)StatusTool(logging_stats, false);
312
if (! global_status_tool)
317
cumulative_user_stats_tool= new(nothrow)CumulativeUserStatsTool(logging_stats);
319
if (! cumulative_user_stats_tool)
324
scoreboard_stats_tool= new(nothrow)ScoreboardStatsTool(logging_stats);
326
if (! scoreboard_stats_tool)
275
current_commands_tool= new CurrentCommandsTool(logging_stats);
276
cumulative_commands_tool= new CumulativeCommandsTool(logging_stats);
277
global_statements_tool= new GlobalStatementsTool(logging_stats);
278
session_statements_tool= new SessionStatementsTool(logging_stats);
279
session_status_tool= new StatusTool(logging_stats, true);
280
global_status_tool= new StatusTool(logging_stats, false);
281
cumulative_user_stats_tool= new CumulativeUserStatsTool(logging_stats);
282
scoreboard_stats_tool= new ScoreboardStatsTool(logging_stats);
283
return false; // todo: return void
334
286
static int init(drizzled::module::Context &context)