1
0
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:
monty@hundin.mysql.fi
2001-09-17 17:53:27 +03:00
parent 295107457f
commit fe1753de58
4 changed files with 64 additions and 46 deletions

View File

@@ -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);