MXS-1647: Detect API version mismatch

If the API versions do not match, MaxScale will treat this as an
error. The API versioning would allow backwards compatible changes but the
functionality to handle that is not implemented in MaxScale.

Updated API versions based on changes done to module APIs in 2.2.
This commit is contained in:
Markus Mäkelä
2018-02-06 08:31:16 +02:00
parent 6132ebd24f
commit 4089b6b6fd
7 changed files with 68 additions and 6 deletions

View File

@ -214,7 +214,7 @@ typedef struct mxs_filter_object
* is changed these values must be updated in line with the rules in the
* file modinfo.h.
*/
#define MXS_FILTER_VERSION {2, 2, 0}
#define MXS_FILTER_VERSION {3, 0, 0}
/**
* MXS_FILTER_DEF represents a filter definition from the configuration file.

View File

@ -95,7 +95,7 @@ typedef struct mxs_monitor_object
* The monitor API version number. Any change to the monitor module API
* must change these versions using the rules defined in modinfo.h
*/
#define MXS_MONITOR_VERSION {3, 0, 0}
#define MXS_MONITOR_VERSION {3, 1, 0}
/**
* Specifies capabilities specific for monitor.

View File

@ -17,7 +17,7 @@
MXS_BEGIN_DECLS
#define QUERY_CLASSIFIER_VERSION {1, 1, 0}
#define MXS_QUERY_CLASSIFIER_VERSION {2, 0, 0}
/**
* qc_init_kind_t specifies what kind of initialization should be performed.

View File

@ -218,7 +218,7 @@ typedef struct mxs_router_object
* must update these versions numbers in accordance with the rules in
* modinfo.h.
*/
#define MXS_ROUTER_VERSION { 2, 0, 0 }
#define MXS_ROUTER_VERSION { 3, 0, 0 }
/**
* Specifies capabilities specific for routers. Common capabilities