1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

bug #24301 Next command hangs in mysql after creating new NDB table via LIKE operation.: Locked mutex LOCK_open during operation

This commit is contained in:
mskold/marty@mysql.com/linux.site
2006-11-15 12:05:05 +01:00
parent a0dbb6ffb3
commit a4ae99533c
3 changed files with 26 additions and 1 deletions

View File

@ -4745,8 +4745,9 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
my_copy(src_path, dst_path, MYF(MY_DONT_OVERWRITE_FILE));
#endif
dst_path[dst_path_length - reg_ext_length]= '\0'; // Remove .frm
pthread_mutex_lock(&LOCK_open);
err= ha_create_table(thd, dst_path, db, table_name, create_info, 1);
pthread_mutex_unlock(&LOCK_open);
if (create_info->options & HA_LEX_CREATE_TMP_TABLE)
{
if (err || !open_temporary_table(thd, dst_path, db, table_name, 1))