Comment 3 for bug 1435482

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote : Re: Regression: bug-1402338-5.5 breaks replication with enforce_storage_engine=Innodb

As mentioned earlier,

#ifdef WITH_WSREP
        /* in STATEMENT format, we probably have to replicate also temporary
           tables, like mysql replication does
        */
      if (!thd->is_current_stmt_binlog_format_row() ||
          !(create_info.options & HA_LEX_CREATE_TMP_TABLE))
       WSREP_TO_ISOLATION_BEGIN(create_table->db, create_table->table_name,
                                 NULL)
#endif /* WITH_WSREP */
        /* Regular CREATE TABLE */
        res= mysql_create_table(thd, create_table,
                                &create_info, &alter_info);

The check for enforce_storage_engine is done after TOI in mysql_create_table. Hence, this check cannot be done for TOI.