MCPcopy Create free account
hub / github.com/Tencent/phxsql / GetMySQLMaxGTIDList

Method GetMySQLMaxGTIDList

phxbinlogsvr/core/monitor/base/master_monitor.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56int 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 &gtid : *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
67int MasterMonitor::GetGlobalMySQLMaxGTIDList(const Option *option, const vector<string> &iplist,
68 vector<string> *gtid_list) {

Callers

nothing calls this directly

Calls 1

LogVerboseFunction · 0.85

Tested by

no test coverage detected