mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-37083 fixup for PLUGIN_PERFSCHEMA=NO
This commit is contained in:
@@ -307,7 +307,19 @@ SELECT STRAIGHT_JOIN COUNT(t6a.a)
|
||||
FROM t6 AS t6a, t6 AS t6b
|
||||
WHERE t6a.a = t6b.a;
|
||||
|
||||
let $no_ps=`SELECT count(*)=0 FROM information_schema.engines WHERE
|
||||
(support = 'YES' OR support = 'DEFAULT') AND
|
||||
engine = 'PERFORMANCE_SCHEMA'`;
|
||||
|
||||
if ($no_ps) {
|
||||
--echo SELECT SUM(pages_hashed)>0 `1`, SUM(pages_old)>0 `1`
|
||||
--echo FROM sys.innodb_buffer_stats_by_table;
|
||||
--echo 1 1
|
||||
--echo 1 1
|
||||
}
|
||||
if (!$no_ps) {
|
||||
SELECT SUM(pages_hashed)>0 `1`, SUM(pages_old)>0 `1`
|
||||
FROM sys.innodb_buffer_stats_by_table;
|
||||
}
|
||||
|
||||
DROP TABLE t1, t2, t3, t4, t5, t6;
|
||||
|
||||
Reference in New Issue
Block a user