Debian Codegraph @

mysql-test/suite/innodb/include/check_pfs_mem_other_is_zero.inc

raw
1 # Check that (after lots of action) the following is still zero. If it is not,
2 # then the file that is allocating dynamic memory should be added to the list
3 # in ut_new_boot().
4
5 -- echo count_alloc WHERE event_name like 'memory/innodb/other'
6
7 -- let pfs_enabled = `SELECT COUNT(*) FROM information_schema.engines WHERE support IN ('YES', 'DEFAULT') AND engine = 'PERFORMANCE_SCHEMA'`
8
9 -- disable_query_log
10
11 if ($pfs_enabled) {
12 SELECT count_alloc FROM performance_schema.memory_summary_global_by_event_name
13 WHERE event_name = 'memory/innodb/other';
14 }
15
16 if (!$pfs_enabled) {
17 SELECT 0 AS count_alloc;
18 }
19
20 -- enable_query_log