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:
@ -273,13 +273,11 @@ bool RWSplit::have_enough_servers() const
|
||||
*/
|
||||
|
||||
|
||||
RWSplit* RWSplit::create(SERVICE *service, char **options)
|
||||
RWSplit* RWSplit::create(SERVICE *service, MXS_CONFIG_PARAMETER* params)
|
||||
{
|
||||
MXS_CONFIG_PARAMETER* params = service->svc_config_param;
|
||||
SConfig config(new Config(params));
|
||||
|
||||
if (!handle_max_slaves(config, config_get_string(params, "max_slave_connections")) ||
|
||||
(options && !rwsplit_process_router_options(config, options)))
|
||||
if (!handle_max_slaves(config, config_get_string(params, "max_slave_connections")))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ public:
|
||||
*
|
||||
* @return New router instance or NULL on error
|
||||
*/
|
||||
static RWSplit* create(SERVICE* pService, char** pzOptions);
|
||||
static RWSplit* create(SERVICE* pService, MXS_CONFIG_PARAMETER* params);
|
||||
|
||||
/**
|
||||
* @brief Create a new session for this router instance
|
||||
|
Reference in New Issue
Block a user