Debian Codegraph @

mysql-test/suite/x/t/global_status_reset.test

raw
1 ## Preamble
2 --source include/xplugin_preamble.inc
3 --source include/xplugin_create_user.inc
4
5 --write_file $MYSQL_TMP_DIR/check.xpl
6 -->sql
7 SHOW SCHEMAS
8 -->endsql
9 EOF
10
11 --write_file $MYSQL_TMP_DIR/reset.xpl
12 -->sql
13 SELECT mysqlx_reset_global_status_variables()
14 -->endsql
15 EOF
16
17 --exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/check.xpl 2>&1
18
19 --source ../include/xplugin_wait_for_connection_closure.inc
20 SHOW GLOBAL STATUS LIKE 'mysqlx%connections%';
21
22 INSTALL COMPONENT "file://component_mysqlx_global_reset";
23
24 SELECT mysqlx_reset_global_status_variables();
25
26 SHOW GLOBAL STATUS LIKE 'mysqlx%connections%';
27
28 --exec $MYSQLXTEST -ux_root --password='' --file=$MYSQL_TMP_DIR/reset.xpl 2>&1
29
30 ## Cleanup
31 UNINSTALL COMPONENT "file://component_mysqlx_global_reset";
32 --source ../include/xplugin_cleanup.inc