mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
92e49bb066
- Show a line with "Engine-independent statistics collected" when ANALYZE command caused EITS statistics to be recollected.
34 lines
1.5 KiB
Text
34 lines
1.5 KiB
Text
#
|
|
# Bug mdev-463: assertion failure when running ANALYZE with RBR on
|
|
#
|
|
SET GLOBAL use_stat_tables = PREFERABLY;
|
|
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
|
|
ANALYZE TABLE t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 analyze status Engine-independent statistics collected
|
|
test.t1 analyze status OK
|
|
DROP TABLE t1;
|
|
SET GLOBAL use_stat_tables = DEFAULT;
|
|
SET use_stat_tables = PREFERABLY;
|
|
CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2;
|
|
ALTER TABLE t1 ANALYZE PARTITION p1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 analyze status Engine-independent statistics collected
|
|
test.t1 analyze status OK
|
|
SHOW BINLOG EVENTS;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 4 Format_desc 1 248 Server ver: #, Binlog ver: #
|
|
master-bin.000001 248 Gtid_list 1 273 []
|
|
master-bin.000001 273 Binlog_checkpoint 1 313 master-bin.000001
|
|
master-bin.000001 313 Gtid 1 351 GTID 0-1-1
|
|
master-bin.000001 351 Query 1 451 use `test`; CREATE TABLE t1 (i INT) ENGINE=InnoDB
|
|
master-bin.000001 451 Gtid 1 489 GTID 0-1-2
|
|
master-bin.000001 489 Query 1 568 use `test`; ANALYZE TABLE t1
|
|
master-bin.000001 568 Gtid 1 606 GTID 0-1-3
|
|
master-bin.000001 606 Query 1 710 use `test`; DROP TABLE `t1` /* generated by server */
|
|
master-bin.000001 710 Gtid 1 748 GTID 0-1-4
|
|
master-bin.000001 748 Query 1 884 use `test`; CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2
|
|
master-bin.000001 884 Gtid 1 922 GTID 0-1-5
|
|
master-bin.000001 922 Query 1 1020 use `test`; ALTER TABLE t1 ANALYZE PARTITION p1
|
|
SET use_stat_tables = DEFAULT;
|
|
DROP TABLE t1;
|