MXS-1845 Add demotion code
The master demotion in switchover now uses query retrying with the switchover time limit.
This commit is contained in:
@ -509,7 +509,15 @@ public:
|
||||
* @param op Cluster operation descriptor
|
||||
* @return True if successful
|
||||
*/
|
||||
bool promote(ClusterOperation& operation);
|
||||
bool promote(ClusterOperation& op);
|
||||
|
||||
/**
|
||||
* Demote this server. Removes all slave connections. If server was master, sets read_only.
|
||||
*
|
||||
* @param op Cluster operation descriptor
|
||||
* @return True if successful
|
||||
*/
|
||||
bool demote(ClusterOperation& op);
|
||||
|
||||
/**
|
||||
* Redirect the slave connection going to demotion target to replicate from promotion target.
|
||||
|
||||
Reference in New Issue
Block a user