MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
have_blackhole_plugin.inc
1 disable_query_log;
2 if (`select plugin_library IS NULL from information_schema.plugins where plugin_name LIKE '%blackhole%'`)
3 {
4  --skip blackhole plugin not available;
5 }
6 
7 if (`SELECT @@plugin_dir != '$BLACKHOLE_PLUGIN_DIR'`) {
8  --skip Blackhole plugin requires that --plugin-dir is set to the blackhole plugin dir (either the .opt file does not contain \$BLACKHOLE_PLUGIN_OPT or another plugin is in use)
9 }
10 enable_query_log;
11