Commit 9dda6cb0 authored by Daniele Sciascia's avatar Daniele Sciascia Committed by Sachin Setiya

MW-313 Enforce wsrep_max_ws_rows also when binlog is enabled

parent 395c420f
......@@ -5933,16 +5933,18 @@ static int binlog_log_row(TABLE* table,
THD *const thd= table->in_use;
#ifdef WITH_WSREP
if (WSREP_EMULATE_BINLOG(thd))
/* only InnoDB tables will be replicated through binlog emulation */
if (WSREP_EMULATE_BINLOG(thd) &&
table->file->ht->db_type != DB_TYPE_INNODB &&
!(table->file->ht->db_type == DB_TYPE_PARTITION_DB &&
(((ha_partition*)(table->file))->wsrep_db_type() == DB_TYPE_INNODB)))
{
/* only InnoDB tables will be replicated through binlog emulation */
if (table->file->ht->db_type != DB_TYPE_INNODB &&
!(table->file->ht->db_type == DB_TYPE_PARTITION_DB &&
(((ha_partition*)(table->file))->wsrep_db_type() == DB_TYPE_INNODB)))
{
return 0;
}
}
/* enforce wsrep_max_ws_rows */
if (table->s->tmp_table == NO_TMP_TABLE)
{
thd->wsrep_affected_rows++;
if (wsrep_max_ws_rows &&
thd->wsrep_exec_mode != REPL_RECV &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment