Skip to content

Commit 15e1fbc

Browse files
committed
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().
1 parent 87de0e2 commit 15e1fbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

storage/myisam/mi_extra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ int mi_extra(MI_INFO *info, enum ha_extra_function function, void *extra_arg)
282282
mysql_mutex_unlock(&share->intern_lock);
283283
mysql_mutex_unlock(&THR_LOCK_myisam);
284284
break;
285+
case HA_EXTRA_END_ALTER_COPY:
285286
case HA_EXTRA_FLUSH:
286287
if (!share->temporary)
287288
flush_key_blocks(share->key_cache, share->kfile, &share->dirty_part_map,

0 commit comments

Comments
 (0)