mirror of
https://github.com/MariaDB/server.git
synced 2025-07-02 14:22:51 +03:00
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
This commit is contained in:
@ -5388,4 +5388,10 @@ select * from t1;
|
||||
c1
|
||||
That
|
||||
drop table t1;
|
||||
create table t1 (a int not null) engine=csv;
|
||||
lock tables t1 read;
|
||||
select * from t1;
|
||||
ERROR HY000: File './test/t1.CSV' not found (Errcode: 2)
|
||||
unlock tables;
|
||||
drop table t1;
|
||||
End of 5.1 tests
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user