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

Method GetMasterInfo

phxbinlogsvr/core/handler/master_manager.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52int MasterManager::GetMasterInfo(MasterInfo *info) {
53 storage_->GetMaster(info);
54 LogVerbose("%s get master admin username %u replica username %u", __func__, info->admin_userinfo_size(),
55 info->replica_userinfo_size());
56 return OK;
57}
58
59int MasterManager::SetMasterInfo(const MasterInfo &master_info) {
60 bool old_master = false;

Callers 9

GetMasterMethod · 0.80
MasterNotifyMethod · 0.80
SetMySqlAdminInfoMethod · 0.80
SetMySqlReplicaInfoMethod · 0.80
ProcessMethod · 0.80
CheckRunningMethod · 0.80
MasterInitMethod · 0.80
CheckMasterInitMethod · 0.80
InitFakeMasterMethod · 0.80

Calls 5

LogVerboseFunction · 0.85
GetEngineSvrIDMethod · 0.80
GetBinLogSvrConfigMethod · 0.80
IsMasterChangingMethod · 0.80
GetMasterMethod · 0.45

Tested by

no test coverage detected