Bug 154 - Added warning if options are set for the read/write splitter and updated example config file.
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user