Bug 154 - Added warning if options are set for the read/write splitter and updated example config file.

This commit is contained in:
Mark Riddoch
2013-08-19 15:53:08 +02:00
parent f750b8545a
commit 0021eddfee
2 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,6 @@ threads=1
[RW Split Service] [RW Split Service]
type=service type=service
router=readwritesplit router=readwritesplit
router_options=slave
servers=server1,server2,server3 servers=server1,server2,server3
user=maxuser user=maxuser
auth=maxpwd auth=maxpwd

View File

@ -150,6 +150,13 @@ static ROUTER* createInstance(
free(inst); free(inst);
return NULL; 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 * 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 * that we can maintain a count of the number of connections to each