mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Fixed flush table issue in MyISAM with CREATE ... SELECT
When doing CREATE TABLE ... ENGINE=MyISAM SELECT ... the MyISAM table was not completely flushed at commit which gave some warnings about table not closed in the atomic test suite. Fixed by flushing the table in select_insert::prepare_eof().
This commit is contained in:
parent
87de0e2129
commit
15e1fbc37d
1 changed files with 1 additions and 0 deletions
|
@ -282,6 +282,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
|
|||
mysql_mutex_unlock(&share->intern_lock);
|
||||
mysql_mutex_unlock(&THR_LOCK_myisam);
|
||||
break;
|
||||
case HA_EXTRA_END_ALTER_COPY:
|
||||
case HA_EXTRA_FLUSH:
|
||||
if (!share->temporary)
|
||||
flush_key_blocks(share->key_cache, share->kfile, &share->dirty_part_map,
|
||||
|
|
Loading…
Reference in a new issue