81
81
static drizzled::plugin::StorageEngine *function_plugin= NULL;
82
static CharacterSetsTool *character_sets;
83
static CollationsTool *collations;
84
static ModulesTool *modules;
85
static PluginsTool *plugins;
86
static ProcesslistTool *processlist;
87
static StatementsTool *global_statements;
88
static StatementsTool *session_statements;
89
static StatusTool *global_status;
90
static StatusTool *session_status;
91
static VariablesTool *global_variables;
92
static VariablesTool *session_variables;
95
83
static int init(drizzled::plugin::Registry ®istry)
97
85
function_plugin= new(std::nothrow) Function("FunctionEngine");
98
87
if (not function_plugin)
103
character_sets= new(std::nothrow)CharacterSetsTool;
104
collations= new(std::nothrow)CollationsTool;
105
modules= new(std::nothrow)ModulesTool;
106
plugins= new(std::nothrow)PluginsTool;
107
processlist= new(std::nothrow)ProcesslistTool;
108
global_statements= new(std::nothrow)StatementsTool(true);
109
global_status= new(std::nothrow)StatusTool(true);
110
session_statements= new(std::nothrow)StatementsTool(false);
111
session_status= new(std::nothrow)StatusTool(false);
112
global_variables= new(std::nothrow)VariablesTool(true);
113
session_variables= new(std::nothrow)VariablesTool(false);
115
92
registry.add(function_plugin);
117
registry.add(character_sets);
118
registry.add(collations);
119
registry.add(global_statements);
120
registry.add(global_status);
121
registry.add(global_variables);
122
registry.add(modules);
123
registry.add(plugins);
124
registry.add(processlist);
125
registry.add(session_statements);
126
registry.add(session_status);
127
registry.add(session_variables);