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:
@ -403,13 +403,13 @@ static bool should_skip_query(const BinlogConfig& config, const std::string& sql
|
||||
}
|
||||
|
||||
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
|
||||
// required to distinct database names from table names.
|
||||
if (n == 0)
|
||||
{
|
||||
rval = should_skip(config, db + '.');
|
||||
// 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.
|
||||
if (n == 0)
|
||||
{
|
||||
rval = should_skip(config, db + '.');
|
||||
}
|
||||
}
|
||||
|
||||
gwbuf_free(buf);
|
||||
|
||||
Reference in New Issue
Block a user