mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WL#3023 (RBR: Use locks in a statement-like manner):
More adaptions to make it work with existing code base. mysql-test/extra/rpl_tests/rpl_row_charset.test: Info for RBR events now include table id; changed test to not depend on the table id. mysql-test/r/rpl_ndb_blob.result: Result change mysql-test/r/rpl_ndb_dd_basic.result: Result change mysql-test/r/rpl_row_basic_7ndb.result: Result change mysql-test/r/rpl_row_drop.result: Result change mysql-test/r/rpl_row_log.result: Result change mysql-test/r/rpl_row_log_innodb.result: Result change mysql-test/r/rpl_row_sp008.result: Result change mysql-test/r/rpl_switch_stm_row_mixed.result: Result change sql/ha_ndbcluster_binlog.cc: Enabled patch to NDB to support new locking scheme. sql/handler.cc: Added test to prevent logging if the binlog is closed. sql/log.cc: Adaptions to use thread-local variable for enabling row-based replication. sql/log_event.cc: Fixing compile failure. sql/slave.cc: Reordering in initializer list to eliminate compiler warning. sql/sql_base.cc: Bad use of return when DBUG_RETURN should be used. sql/sql_insert.cc: Adaptions to use thread-local variable for enabling row-based replication.
This commit is contained in:
@ -2508,7 +2508,7 @@ select_create::prepare(List<Item> &values, SELECT_LEX_UNIT *u)
|
||||
MY_HOOKS(select_create *x) : ptr(x) { }
|
||||
virtual void do_prelock(TABLE **tables, uint count)
|
||||
{
|
||||
if (binlog_row_based)
|
||||
if (ptr->thd->current_stmt_binlog_row_based)
|
||||
ptr->binlog_show_create_table(tables, count);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user