mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fixed locking problem when using bulk insert
Fixed array overrun when using drop_db Portability fixes BitKeeper/etc/ignore: Added libmysqld/examples/completion_hash.cc libmysqld/examples/completion_hash.h libmysqld/examples/my_readline.h libmysqld/examples/mysql.cc libmysqld/examples/mysqltest.c libmysqld/examples/readline.cc libmysqld/examples/sql_string.cc libmysqld/examples/sql_string.h to the ignore list acinclude.m4: Fixed reference to top_builddir myisam/mi_write.c: Fixed locking problem when using bulk insert sql/sql_db.cc: Fixed array overrun when using drop_db
This commit is contained in:
@@ -246,7 +246,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
|
||||
/* Drop the table nicely */
|
||||
*fn_ext(file->name)=0; // Remove extension
|
||||
TABLE_LIST *table_list=(TABLE_LIST*)
|
||||
thd->calloc(sizeof(*table_list)+ strlen(db)+strlen(file->name)+1);
|
||||
thd->calloc(sizeof(*table_list)+ strlen(db)+strlen(file->name)+2);
|
||||
if (!table_list)
|
||||
{
|
||||
my_dirend(dirp);
|
||||
|
||||
Reference in New Issue
Block a user