2012-08-20 21:05:37 +02:00
|
|
|
#
|
|
|
|
# Bug mdev-463: assertion failure when running ANALYZE with RBR on
|
|
|
|
#
|
|
|
|
SET GLOBAL use_stat_tables = PREFERABLY;
|
2016-03-25 17:51:22 +01:00
|
|
|
connect con1,localhost,root,,;
|
2012-08-20 21:05:37 +02:00
|
|
|
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
|
|
|
|
ANALYZE TABLE t1;
|
|
|
|
Table Op Msg_type Msg_text
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-08-20 21:05:37 +02:00
|
|
|
test.t1 analyze status OK
|
|
|
|
DROP TABLE t1;
|
|
|
|
SET GLOBAL use_stat_tables = DEFAULT;
|
2016-03-25 17:51:22 +01:00
|
|
|
disconnect con1;
|
|
|
|
connection default;
|
2012-09-11 07:22:57 +02:00
|
|
|
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
|
2014-03-27 21:32:53 +01:00
|
|
|
test.t1 analyze status Engine-independent statistics collected
|
2012-09-11 07:22:57 +02:00
|
|
|
test.t1 analyze status OK
|
2015-08-21 23:20:35 +02:00
|
|
|
include/show_binlog_events.inc
|
2012-09-11 07:22:57 +02:00
|
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
2015-08-21 23:20:35 +02:00
|
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (i INT) ENGINE=InnoDB
|
|
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
master-bin.000001 # Query # # use `test`; ANALYZE TABLE t1
|
|
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */
|
|
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( a INT ) ENGINE=MyISAM PARTITION BY HASH(a) PARTITIONS 2
|
|
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
|
|
master-bin.000001 # Query # # use `test`; ALTER TABLE t1 ANALYZE PARTITION p1
|
2012-09-11 07:22:57 +02:00
|
|
|
SET use_stat_tables = DEFAULT;
|
|
|
|
DROP TABLE t1;
|