| 54 | } |
| 55 | |
| 56 | int MasterMonitor::GetMySQLMaxGTIDList(const Option *option, vector<string> *gtid_list, bool is_master) { |
| 57 | int ret = MonitorComm::GetMySQLMaxGTIDList(option, "gtid_executed", gtid_list); |
| 58 | if(ret==0&&is_master) { |
| 59 | for (auto >id : *gtid_list) { |
| 60 | gtid = MySqlManager::ReduceGtidByOne(gtid); |
| 61 | LogVerbose("%s master get new gtid %s",__func__, gtid.c_str()); |
| 62 | } |
| 63 | } |
| 64 | return ret; |
| 65 | } |
| 66 | |
| 67 | int MasterMonitor::GetGlobalMySQLMaxGTIDList(const Option *option, const vector<string> &iplist, |
| 68 | vector<string> *gtid_list) { |
nothing calls this directly
no test coverage detected