mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 01:34:17 +01:00
8acbf9c1f9
The test cases for the MDEV found several independent bugs in MariaDB server and Aria: - If a temporary table was marked as crashed, it could never be deleted. - Opening of a crashed temporary table gave an error message but the error was never forwarded to the caller which caused an assert() in my_ok() - init_read_record() did mmap of all temporary tables, which is probably not a good idea as this area can potentially be very big. Changed code to only mmap internal temporary tables. - mmap-ed tables where not unmapped in case of repair/optimize which caused bad data in table and crashes if the original table files where replaced with new ones (as the old mmap was still in place). Fixed by removing the mmap in case of repair. - Cleaned up usage of code that disabled mmap in Aria
20 lines
553 B
Text
20 lines
553 B
Text
#
|
|
# MDEV-19595
|
|
# ER_CRASHED_ON_USAGE and Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())'
|
|
# failed upon actions on temporary Aria table with ROW_FORMAT DYNAMIC
|
|
#
|
|
|
|
CREATE TABLE t1 (b INT);
|
|
INSERT INTO t1 VALUES (5);
|
|
CREATE TEMPORARY TABLE t1 (a INT) ENGINE=Aria ROW_FORMAT=DYNAMIC;
|
|
INSERT INTO t1 VALUES (1);
|
|
DELETE FROM t1 LIMIT 2;
|
|
OPTIMIZE TABLE t1;
|
|
CHECK TABLE t1;
|
|
SELECT * FROM t1;
|
|
INSERT INTO t1 VALUES (1),(2);
|
|
CHECK TABLE t1;
|
|
ALTER TABLE t1 CHANGE COLUMN IF EXISTS x x INT;
|
|
ALTER TABLE t1;
|
|
DROP TEMPORARY TABLE t1;
|
|
DROP TABLE t1;
|