diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index bd2a5139021..6cb35fb392d 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -5320,7 +5320,8 @@ ha_innobase::store_lock( (lock_type == TL_READ_HIGH_PRIORITY && thd->in_lock_tables) || lock_type == TL_READ_WITH_SHARED_LOCKS || lock_type == TL_READ_NO_INSERT || - thd->lex->sql_command != SQLCOM_SELECT) { + (thd->lex->sql_command != SQLCOM_SELECT + && lock_type != TL_IGNORE)) { /* The OR cases above are in this order: 1) MySQL is doing LOCK TABLES ... READ LOCAL, or