MXS-1889 Handle master used as slave
Up until 2.1.12, if it in the configuration file said 'router_options=slave', the master was used if there were no slaves at session creation time. That broke in 2.1.13 as a side-effect of MXS-1516 that checks at routing time whether the server initially selected as master still is the master. Now the required server status is stored separately for each session, so that if the master was chosen, even though we have 'router_options=slave', we can turn on the SERVER_MASTER bit. That allows us to handle the case correctly in connection_is_valid().
This commit is contained in:
@ -21,7 +21,7 @@ Here is a list of all possible values for the `router_options`.
|
||||
Role|Description
|
||||
------|---------
|
||||
master|A server assigned as a master by one of MariaDB MaxScale monitors. Depending on the monitor implementation, this could be a master server of a Master-Slave replication cluster or a Write-Master of a Galera cluster.
|
||||
slave|A server assigned as a slave of a master.
|
||||
slave|A server assigned as a slave of a master. If all slaves are down, but the master is still available, then the router will use the master.
|
||||
synced| A Galera cluster node which is in a synced state with the cluster.
|
||||
ndb|A MySQL Replication Cluster node
|
||||
running|A server that is up and running. All servers that MariaDB MaxScale can connect to are labeled as running.
|
||||
|
||||
Reference in New Issue
Block a user