| 89 | } |
| 90 | |
| 91 | bool MasterManager::IsMaster(const MasterInfo &info) { |
| 92 | return info.svr_id() == option_->GetBinLogSvrConfig()->GetEngineSvrID() && !IsTimeOut(info); |
| 93 | } |
| 94 | |
| 95 | bool MasterManager::IsMaster() { |
| 96 | return storage_->CheckMasterBySvrID(option_->GetBinLogSvrConfig()->GetEngineSvrID()); |
no test coverage detected