MXS-2776: Fix unwanted regex checks on COMMIT

The default database check would be done even on transaction management
commands which would cause them to always be skipped when a match was
defined.
This commit is contained in:
Markus Mäkelä
2019-12-02 09:08:00 +02:00
parent 7a5e50f980
commit b1961042a7

View File

@ -403,13 +403,13 @@ static bool should_skip_query(const BinlogConfig& config, const std::string& sql
} }
qc_free_table_names(names, n); qc_free_table_names(names, n);
}
// Also check for the default database in case the query has no tables in it. The dot at the end is // Also check for the default database in case the query has no tables in it. The dot at the end is
// required to distinct database names from table names. // required to distinct database names from table names.
if (n == 0) if (n == 0)
{ {
rval = should_skip(config, db + '.'); rval = should_skip(config, db + '.');
}
} }
gwbuf_free(buf); gwbuf_free(buf);