Allow non-GTID replication without rewrite_src

The filter allowed only GTID replication when file-and-position based
replication should be allowed as well.
This commit is contained in:
Markus Mäkelä 2019-12-20 11:05:46 +02:00
parent 8cbe886dc5
commit 61b8bbf7f6
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -139,7 +139,7 @@ int BinlogFilterSession::routeQuery(GWBUF* pPacket)
m_state = BINLOG_MODE;
MXS_INFO("Slave server %u is waiting for binlog events.", m_serverid);
if (!m_is_gtid)
if (!m_is_gtid && m_filter.getConfig().rewrite_src)
{
gwbuf_free(pPacket);
std::ostringstream ss;