diff options
author | Sergey Vojtovich <svoj@sun.com> | 2010-02-12 16:33:03 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@sun.com> | 2010-02-12 16:33:03 +0400 |
commit | 91f0212c68662f57d922e61ce3f5a5defd697949 (patch) | |
tree | f04955698b971556bf691b5f4e2a763f8fd288d1 /mysql-test/t/archive.test | |
parent | 6124451d9534b1a03e58724411c492d9de980cb4 (diff) | |
download | mariadb-git-91f0212c68662f57d922e61ce3f5a5defd697949.tar.gz |
BUG#48757 - missing .ARZ file causes server crash
Server crashes when accessing ARCHIVE table with missing
.ARZ file.
When opening a table, ARCHIVE didn't properly pass through
error code from lower level azopen() to higher level open()
method.
mysql-test/r/archive.result:
A test case for BUG#48757.
mysql-test/t/archive.test:
A test case for BUG#48757.
storage/archive/ha_archive.cc:
Pass through error code from azopen().
Diffstat (limited to 'mysql-test/t/archive.test')
-rw-r--r-- | mysql-test/t/archive.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/archive.test b/mysql-test/t/archive.test index 90f5b1b0b53..67ad0517ed2 100644 --- a/mysql-test/t/archive.test +++ b/mysql-test/t/archive.test @@ -1644,3 +1644,14 @@ INSERT INTO t1 (col1, col2) VALUES (1, "value"); REPAIR TABLE t1; DROP TABLE t1; remove_file $MYSQLD_DATADIR/test/t1.ARM; + +--echo # +--echo # BUG#48757 - missing .ARZ file causes server crash +--echo # +CREATE TABLE t1(a INT) ENGINE=ARCHIVE; +FLUSH TABLE t1; +--remove_file $MYSQLD_DATADIR/test/t1.ARZ +--error ER_FILE_NOT_FOUND +SELECT * FROM t1; +--error ER_BAD_TABLE_ERROR +DROP TABLE t1; |