diff options
author | Sergey Glukhov <gluh@mysql.com> | 2008-08-15 11:53:54 +0500 |
---|---|---|
committer | Sergey Glukhov <gluh@mysql.com> | 2008-08-15 11:53:54 +0500 |
commit | 02aaff1b343ffd3cd397cc67d7f9eb69d8cb1545 (patch) | |
tree | 493de30713a4ba8185da9b027000cb08537bd10a /mysql-test/t/csv.test | |
parent | a233d7b85174faafeb0a8fa9086fb7a17a30f84d (diff) | |
download | mariadb-git-02aaff1b343ffd3cd397cc67d7f9eb69d8cb1545.tar.gz |
Bug#36638 mysqld crashes when open file limit is passed and general query log enabled
The problem:
CSV storage engine open function returns success even
thought it failed to open the data file
The fix:
return error
Additional fixes:
added MY_WME to my_open to avoid mysterious error message
free share struct if open the file was unsuccessful
mysql-test/r/csv.result:
test result
mysql-test/t/csv.test:
test case
storage/csv/ha_tina.cc:
The problem:
CSV storage engine open function returns success even
thought it failed to open the data file
The fix:
return error
Additional fixes:
added MY_WME to my_open to avoid mysterious error message
free share struct if open the file was unsuccessful
Diffstat (limited to 'mysql-test/t/csv.test')
-rw-r--r-- | mysql-test/t/csv.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/csv.test b/mysql-test/t/csv.test index dd8c940ac44..722d6d1c141 100644 --- a/mysql-test/t/csv.test +++ b/mysql-test/t/csv.test @@ -1386,6 +1386,9 @@ UNLOCK TABLES; # cleanup DROP TABLE test_concurrent_insert; +connection default; +--disconnect con1 +--disconnect con2 # # Test REPAIR/CHECK TABLE (5.1) @@ -1784,4 +1787,20 @@ update t1 set c1="That" where c1="This"; select * from t1; drop table t1; +# +# Bug#36638 mysqld crashes when open file limit is passed and general query log enabled +# +create table t1 (a int not null) engine=csv; +lock tables t1 read; +connect (con1,localhost,root,,); +--connection con1 +--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.CSV +# EE_FILENOTFOUND 29 +--error 29 +select * from t1; +connection default; +unlock tables; +drop table t1; +--disconnect con1 + --echo End of 5.1 tests |