Debian Codegraph @

mysql-test/suite/auth_sec/include/mysql_upgrade_preparation.inc

raw
1 # Include this in any test using mysql_upgrade
2
3
4 #
5 # Hack:
6 #
7 # If running with Valgrind ($VALGRIND_TEST <> 0) then the resource
8 # consumption (CPU) for upgrading a large log table will be intense.
9 # Therefore, truncate the log table in advance and issue a statement
10 # that should be logged.
11 #
12 if ($VALGRIND_TEST)
13 {
14 --disable_query_log
15 --disable_result_log
16 --disable_abort_on_error
17 TRUNCATE TABLE mysql.general_log;
18 SELECT 1;
19 --enable_abort_on_error
20 --enable_result_log
21 --enable_query_log
22 }