MXS-1845 Add redirection code

Should work with multimaster replication.
This commit is contained in:
Esa Korhonen
2018-09-28 16:18:38 +03:00
parent 75f9921ca2
commit 1ca5d02abb
4 changed files with 112 additions and 12 deletions

View File

@ -502,6 +502,14 @@ public:
*/
bool promote(ClusterOperation& operation);
/**
* Redirect the slave connection going to demotion target to replicate from promotion target.
*
* @param op Operation descriptor
* @return True on success
*/
bool redirect_existing_slave_conn(ClusterOperation& op);
private:
class EventInfo;
typedef std::function<void (const EventInfo&, json_t** error_out)> ManipulatorFunc;