Skip to content

Commit dfb22d9

Browse files
committed
MDEV-37083 fixup for PLUGIN_PERFSCHEMA=NO
1 parent 5b12799 commit dfb22d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

mysql-test/suite/encryption/t/innochecksum.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,19 @@ SELECT STRAIGHT_JOIN COUNT(t6a.a)
307307
FROM t6 AS t6a, t6 AS t6b
308308
WHERE t6a.a = t6b.a;
309309

310+
let $no_ps=`SELECT count(*)=0 FROM information_schema.engines WHERE
311+
(support = 'YES' OR support = 'DEFAULT') AND
312+
engine = 'PERFORMANCE_SCHEMA'`;
313+
314+
if ($no_ps) {
315+
--echo SELECT SUM(pages_hashed)>0 `1`, SUM(pages_old)>0 `1`
316+
--echo FROM sys.innodb_buffer_stats_by_table;
317+
--echo 1 1
318+
--echo 1 1
319+
}
320+
if (!$no_ps) {
310321
SELECT SUM(pages_hashed)>0 `1`, SUM(pages_old)>0 `1`
311322
FROM sys.innodb_buffer_stats_by_table;
323+
}
312324

313325
DROP TABLE t1, t2, t3, t4, t5, t6;

0 commit comments

Comments
 (0)