mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
be99d0ddb6
We do not really care about the exact result; we only care that the statistics will be accessed. The result could change depending on when some statistics were updated in the background or when some committed delete-marked rows were purged from other tables on which persistent statistics are enabled.
28 lines
736 B
Text
28 lines
736 B
Text
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
--source include/have_debug_sync.inc
|
|
--source include/count_sessions.inc
|
|
|
|
--echo #
|
|
--echo # MDEV-23991 dict_table_stats_lock() has unnecessarily long scope
|
|
--echo #
|
|
CREATE TABLE t1(a INT) ENGINE=INNODB STATS_PERSISTENT=1;
|
|
|
|
SET DEBUG_SYNC='dict_stats_update_persistent SIGNAL stop WAIT_FOR go';
|
|
--send ANALYZE TABLE t1
|
|
|
|
--connect(con1, localhost, root)
|
|
SET DEBUG_SYNC='now WAIT_FOR stop';
|
|
|
|
--replace_column 1 SUM
|
|
SELECT SUM(DATA_LENGTH+INDEX_LENGTH) FROM information_schema.TABLES WHERE ENGINE='InnoDB';
|
|
|
|
SET DEBUG_SYNC='now SIGNAL go';
|
|
--disconnect con1
|
|
|
|
--connection default
|
|
--reap
|
|
SET DEBUG_SYNC= 'RESET';
|
|
DROP TABLE t1;
|
|
|
|
--source include/wait_until_count_sessions.inc
|