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:
@ -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();
|
||||
|
Reference in New Issue
Block a user