1
0
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.
This commit is contained in:
mats@mysql.com
2006-03-03 09:49:46 +01:00
parent 1e66bc0d16
commit 0ffd1be87d
16 changed files with 165 additions and 189 deletions

View File

@@ -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);
}
}