mirror of
https://github.com/MariaDB/server.git
synced 2025-07-24 19:42:23 +03:00
dict_stats_exec_sql(): Refuse the operation if shutdown has been initiated. The real fix would be to update the persistent statistics as part of the data dictionary transactions. To do this, we should move the storage of InnoDB persistent statistics to the InnoDB data files, and maybe also remove the InnoDB data dictionary.
19 lines
611 B
Plaintext
19 lines
611 B
Plaintext
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
--source include/have_debug_sync.inc
|
|
|
|
call mtr.add_suppression("InnoDB: Cannot save table statistics for table `test`\\.`t1`: Persistent statistics do not exist");
|
|
|
|
SET GLOBAL innodb_stats_persistent= ON;
|
|
CREATE TABLE t1 (t TEXT) ENGINE=InnoDB;
|
|
--connect (con1,localhost,root,,test)
|
|
SET DEBUG_SYNC='ib_trunc_table_trunc_completing SIGNAL committed WAIT_FOR ever';
|
|
--send
|
|
TRUNCATE TABLE t1;
|
|
--connection default
|
|
SET DEBUG_SYNC='now WAIT_FOR committed';
|
|
--source include/restart_mysqld.inc
|
|
--disconnect con1
|
|
SELECT COUNT(*) FROM t1;
|
|
DROP TABLE t1;
|