Debian Codegraph @

mysql-test/suite/connection_control/inc/have_connection_control_plugin.inc

raw
1 disable_query_log;
2 #
3 # Check if server has support for loading plugin
4 #
5 if (`SELECT @@have_dynamic_loading != 'YES'`) {
6 --skip The connection_control plugin requires dynamic loading
7 }
8
9 #
10 # Check if the variable CONNECTION_CONTROL_PLUGIN is set
11 #
12 if (!$CONNECTION_CONTROL_PLUGIN) {
13 --skip The connection_control plugin requires the environment variable \$CONNECTION_CONTROL_PLUGIN to be set (normally done by mtr)
14 }
15
16 #
17 # Check if --plugin-dir was setup for null_audit_db
18 #
19 if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$CONNECTION_CONTROL_PLUGIN_OPT/'`) {
20 --skip The connection_control plugin requires that --plugin-dir is set to the connection_control plugin dir (either the .opt file does not contain \$CONNECTION_CONTROL_PLUGIN_OPT or another plugin is in use)
21 }
22 enable_query_log;