mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
c5dd72b506
LEAK WITH PARTITIONED ARCHIVE TABLES CHECK TABLE against archive table, when file descriptors are exhausted, caused server crash. Archive didn't handle errors when opening data file for CHECK TABLE. mysql-test/r/archive_debug.result: A test case for BUG#12402794. mysql-test/t/archive_debug.test: A test case for BUG#12402794. storage/archive/azio.c: A test case for BUG#12402794. storage/archive/ha_archive.cc: Handle init_archive_reader() failure.
12 lines
355 B
Text
12 lines
355 B
Text
#
|
|
# BUG#12402794 - 60976: CRASH, VALGRIND WARNING AND MEMORY LEAK
|
|
# WITH PARTITIONED ARCHIVE TABLES
|
|
#
|
|
CREATE TABLE t1(a INT) ENGINE=ARCHIVE;
|
|
INSERT INTO t1 VALUES(1);
|
|
SET SESSION debug='d,simulate_archive_open_failure';
|
|
CHECK TABLE t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check error Corrupt
|
|
SET SESSION debug=DEFAULT;
|
|
DROP TABLE t1;
|