Deprecate mqfilter

This commit is contained in:
Johan Wikman
2019-06-26 09:56:12 +03:00
parent d41d4021a8
commit 59e7b2b09d
4 changed files with 16 additions and 0 deletions

View File

@ -18,6 +18,7 @@
* The following MariaDB-Monitor settings have been removed and cause a startup error * The following MariaDB-Monitor settings have been removed and cause a startup error
if defined: `mysql51_replication`, `multimaster` and `allow_cluster_recovery`. The if defined: `mysql51_replication`, `multimaster` and `allow_cluster_recovery`. The
setting `detect_replication_lag` is deprecated and is ignored. setting `detect_replication_lag` is deprecated and is ignored.
* The mqfilter has been deprecated.
For more details, please refer to: For more details, please refer to:

View File

@ -2,6 +2,9 @@
## Overview ## Overview
The **mqfilter** has been deprecated in MaxScale 2.4 and it will be removed
in a future version of MaxScale. We advise against using it.
This filter is designed to extract queries and transform them into a canonical This filter is designed to extract queries and transform them into a canonical
form e.g. `INSERT INTO database.table VALUES ("John Doe", "Downtown",100,50.0);` form e.g. `INSERT INTO database.table VALUES ("John Doe", "Downtown",100,50.0);`
turns into `INSERT INTO database.table VALUES ("?", "?",?,?);`. The filter turns into `INSERT INTO database.table VALUES ("?", "?",?,?);`. The filter

View File

@ -80,6 +80,15 @@ what it used to do.
The `log_to_shm` parameter that was removed in 2.3 will be treated as an unknown The `log_to_shm` parameter that was removed in 2.3 will be treated as an unknown
parameter in 2.4.0. parameter in 2.4.0.
## Deprecated Features
### `mqfilter`
The `mqfilter` has been deprecated and it will be removed in a future version
of MaxScale.
We advise against using it.
## New Features ## New Features
### Clustrix Support ### Clustrix Support

View File

@ -570,6 +570,9 @@ char** parse_optstr(const char* str, const char* tok, int* szstore)
*/ */
static MXS_FILTER* createInstance(const char* name, MXS_CONFIG_PARAMETER* params) static MXS_FILTER* createInstance(const char* name, MXS_CONFIG_PARAMETER* params)
{ {
MXS_WARNING("The mqfilter has been DEPRECATED in MaxScale 2.4 "
"and it will be removed in a future release of MaxScale.");
MQ_INSTANCE* my_instance = static_cast<MQ_INSTANCE*>(MXS_CALLOC(1, sizeof(MQ_INSTANCE))); MQ_INSTANCE* my_instance = static_cast<MQ_INSTANCE*>(MXS_CALLOC(1, sizeof(MQ_INSTANCE)));
if (my_instance) if (my_instance)