mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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:
@@ -3137,10 +3137,11 @@ bool ha_show_status(THD *thd, handlerton *db_type, enum ha_stat_type stat)
|
||||
correct for the table.
|
||||
|
||||
A row in the given table should be replicated if:
|
||||
- Row-based replication is on
|
||||
- It is not a temporary table
|
||||
- Row-based replication is enabled in the current thread
|
||||
- The binlog is enabled
|
||||
- The table shall be binlogged (binlog_*_db rules)
|
||||
- It is not a temporary table
|
||||
- The binary log is open
|
||||
- The database the table resides in shall be binlogged (binlog_*_db rules)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_ROW_BASED_REPLICATION
|
||||
@@ -3154,6 +3155,7 @@ namespace {
|
||||
thd->current_stmt_binlog_row_based &&
|
||||
thd && (thd->options & OPTION_BIN_LOG) &&
|
||||
(table->s->tmp_table == NO_TMP_TABLE) &&
|
||||
mysql_bin_log.is_open() &&
|
||||
binlog_filter->db_ok(table->s->db.str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user