MXS-701: Improve binlogfilter

Added `match` and `exclude` functionality. This allows versatile filtering
without a large investment of development time by leveraging the benefits
of PCRE2 regular expressions.

Also cleaned up the filter and removed the single table matching and
active parameter that were obsoleted by the regular expression parameters.
This commit is contained in:
Markus Mäkelä
2018-09-21 11:31:15 +03:00
parent f3d96822d0
commit 047242a721
6 changed files with 166 additions and 393 deletions

View File

@ -654,6 +654,19 @@ char** qc_get_table_names(GWBUF* query, int* tblsize, bool fullnames)
return names;
}
void qc_free_table_names(char** names, int tblsize)
{
if (names)
{
for (int i = 0; i < tblsize; i++)
{
MXS_FREE(names[i]);
}
MXS_FREE(names);
}
}
char* qc_get_canonical(GWBUF* query)
{
QC_TRACE();