mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-17923 Assertion failed in trx_undo_page_report_modify after CREATE FULLTEXT INDEX
row_fts_merge_insert(): Correctly initialize DB_ROLL_PTR to a safe value that will not be dereferenced by MVCC.
This commit is contained in:
@ -90,3 +90,19 @@ ENGINE=InnoDB;
|
||||
# The column length should be 84 bytes (84 characters * 1 byte/character).
|
||||
SELECT len,COUNT(*) FROM INFORMATION_SCHEMA.INNODB_SYS_COLUMNS where name='word' GROUP BY len;
|
||||
DROP TABLE t;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17923 Assertion memcmp(field, field_ref_zero, 7) failed in
|
||||
--echo # trx_undo_page_report_modify upon optimizing table
|
||||
--echo # under innodb_optimize_fulltext_only
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (f1 TEXT, f2 TEXT, FULLTEXT KEY (f2)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 (f1) VALUES ('foo'),('bar');
|
||||
DELETE FROM t1 LIMIT 1;
|
||||
ALTER TABLE t1 ADD FULLTEXT KEY (f1);
|
||||
SET @optimize_fulltext.save= @@innodb_optimize_fulltext_only;
|
||||
SET GLOBAL innodb_optimize_fulltext_only= 1;
|
||||
OPTIMIZE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL innodb_optimize_fulltext_only= @optimize_fulltext.save;
|
||||
|
Reference in New Issue
Block a user