mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed locking problem when using bulk insert
Fixed array overrun when using drop_db Portability fixes
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