1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix to ensure updates in gtid_slave_state table do not get binlogged.

Also, renamed wsrep_skip_append_keys to wsrep_ignore_table.
Test case : galera.galera_as_slave_gtid.test
This commit is contained in:
Nirbhay Choubey
2016-02-24 23:32:37 -05:00
parent b05158cc10
commit 0251232f8c
10 changed files with 31 additions and 20 deletions

View File

@ -5723,10 +5723,16 @@ static int binlog_log_row(TABLE* table,
bool error= 0;
THD *const thd= table->in_use;
/* only InnoDB tables will be replicated through binlog emulation */
if (WSREP_EMULATE_BINLOG(thd) &&
table->file->partition_ht()->db_type != DB_TYPE_INNODB)
#ifdef WITH_WSREP
/*
Only InnoDB tables will be replicated through binlog emulation. Also
updates in mysql.gtid_slave_state table should not be binlogged.
*/
if ((WSREP_EMULATE_BINLOG(thd) &&
table->file->partition_ht()->db_type != DB_TYPE_INNODB) ||
(thd->wsrep_ignore_table == true))
return 0;
#endif /* WITH_WSREP */
if (check_table_binlog_row_based(thd, table))
{