From 0021eddfee2ae7a5217e6ff170fed3270d966579 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Mon, 19 Aug 2013 15:53:08 +0200 Subject: [PATCH] Bug 154 - Added warning if options are set for the read/write splitter and updated example config file. --- server/MaxScale.cnf | 1 - server/modules/routing/readwritesplit/readwritesplit.c | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/MaxScale.cnf b/server/MaxScale.cnf index 048c5b2f2..7777a5770 100644 --- a/server/MaxScale.cnf +++ b/server/MaxScale.cnf @@ -22,7 +22,6 @@ threads=1 [RW Split Service] type=service router=readwritesplit -router_options=slave servers=server1,server2,server3 user=maxuser auth=maxpwd diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index b5501a791..9b8a9cbba 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -150,6 +150,13 @@ static ROUTER* createInstance( free(inst); return NULL; } + + if (options) + { + skygw_log_write_flush(LOGFILE_MESSAGE, + "Router options supplied to read/write split router module but none are supported. The options will be ignored.\n"); + } + /** * We need an array of the backend servers in the instance structure so * that we can maintain a count of the number of connections to each