Commit 360d1cd0 authored by unknown's avatar unknown
Browse files

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

parent d839f3a9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
      		}