Remove router_options
Relaced router_options with configuration parameters in the createInstance router entry point. The same needs to be done for the filter API as barely any filters use the feature. Some routers (binlogrouter) still support router_options but using it is deprecated. This had to be done as their use wasn't deprecated in 2.2.
This commit is contained in:
@ -54,7 +54,7 @@
|
||||
#include <maxscale/paths.h>
|
||||
|
||||
/* The router entry points */
|
||||
static MXS_ROUTER *createInstance(SERVICE *service, char **options);
|
||||
static MXS_ROUTER *createInstance(SERVICE *service, MXS_CONFIG_PARAMETER* params);
|
||||
static void free_instance(ROUTER_INSTANCE *instance);
|
||||
static MXS_ROUTER_SESSION *newSession(MXS_ROUTER *instance,
|
||||
MXS_SESSION *session);
|
||||
@ -233,8 +233,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
||||
*
|
||||
* @return The instance data for this new instance
|
||||
*/
|
||||
static MXS_ROUTER *
|
||||
createInstance(SERVICE *service, char **options)
|
||||
static MXS_ROUTER* createInstance(SERVICE *service, MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
ROUTER_INSTANCE *inst;
|
||||
uuid_t defuuid;
|
||||
@ -322,8 +321,6 @@ createInstance(SERVICE *service, char **options)
|
||||
strcpy(inst->binlog_name, "");
|
||||
strcpy(inst->prevbinlog, "");
|
||||
|
||||
MXS_CONFIG_PARAMETER *params = service->svc_config_param;
|
||||
|
||||
inst->initbinlog = config_get_integer(params, "file");
|
||||
|
||||
inst->short_burst = config_get_integer(params, "shortburst");
|
||||
|
||||
Reference in New Issue
Block a user