don't downgrade the lock for CREATE ... SELECT (bug#6678)

This commit is contained in:
serg@serg.mylan 2005-05-27 12:38:29 +02:00
parent 4290e7c73a
commit d21b8d1077

View File

@ -5420,7 +5420,8 @@ ha_innobase::store_lock(
if ((lock_type >= TL_WRITE_CONCURRENT_INSERT &&
lock_type <= TL_WRITE) && !thd->in_lock_tables
&& !thd->tablespace_op) {
&& !thd->tablespace_op
&& thd->lex->sql_command != SQLCOM_CREATE_TABLE) {
lock_type = TL_WRITE_ALLOW_WRITE;
}