Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/t/monitor_restart.test |
source include/have_innodb.inc; source include/not_embedded.inc; --echo # --echo # BUG#20080942 - ADAPTIVE_HASH_SEARCHES_BTREE NOT UPDATED --echo # # To make sure that the change buffer is empty SET GLOBAL innodb_fast_shutdown=0; --source include/restart_mysqld.inc CREATE TABLE t1(a INT PRIMARY KEY, b BLOB) STATS_PERSISTENT=0; let $start=`SELECT COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME LIKE 'adaptive_hash_searches_btree' ORDER BY NAME`; INSERT INTO t1 VALUES(1, 'abc'); INSERT INTO t1 VALUES(2, 'def'); INSERT INTO t1 VALUES(3, 'ghi'); SELECT * FROM t1; let $end=`SELECT COUNT FROM INFORMATION_SCHEMA.INNODB_METRICS WHERE NAME LIKE 'adaptive_hash_searches_btree' ORDER BY NAME`; let $diff=`SELECT $end-$start`; if ($diff != 3) { echo "Unexpected count: $diff"; } DROP TABLE t1;