MXS-2546 Remove external master tracking

It was only used for logging.
This commit is contained in:
Esa Korhonen
2019-07-17 13:39:49 +03:00
parent 835049d506
commit 0257e6e690
2 changed files with 1 additions and 49 deletions

View File

@ -194,8 +194,6 @@ private:
// Miscellaneous info
int64_t m_master_gtid_domain = GTID_DOMAIN_UNKNOWN; /* gtid_domain_id most recently seen on
* the master */
std::string m_external_master_host; /* External master host, for fail/switchover */
int m_external_master_port = PORT_UNKNOWN; /* External master port */
// Fields controlling logging of various events. TODO: Check these
bool m_log_no_master {true}; /* Should it be logged that there is no master? */
@ -291,7 +289,7 @@ private:
int running_slaves(MariaDBServer* search_root);
bool cycle_has_master_server(ServerArray& cycle_servers);
void update_gtid_domain();
void update_external_master();
void update_master_cycle_info();
bool is_candidate_valid(MariaDBServer* cand, RequireRunning req_running, std::string* why_not = nullptr);