From 3b6b33b7dd143ff79faa6ad44f59d93231a277da Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Mon, 30 Jun 2014 22:50:31 +0300 Subject: [PATCH] Modified refreshInstance to support max_slave_replication_lag. --- server/modules/routing/readwritesplit/readwritesplit.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index 7b6826c5b..f2d4debc5 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -316,6 +316,13 @@ static void refreshInstance( router->rwsplit_config.rw_max_slave_conn_count = config_get_valint(param, NULL, paramtype); } + else if (strncmp(param->name, + "max_slave_replication_lag", + MAX_PARAM_LEN) == 0) + { + router->rwsplit_config.rw_max_slave_replication_lag = + config_get_valint(param, NULL, paramtype); + } } else if (paramtype == PERCENT_TYPE) {