| 39 | } |
| 40 | |
| 41 | int MasterStorage::LoadFromCheckPoint(const MasterInfo &info) { |
| 42 | if (info.version() > 0) { |
| 43 | master_ = info; |
| 44 | master_.set_expire_time( |
| 45 | time(NULL) + option_->GetBinLogSvrConfig()->GetMasterLeaseTime() |
| 46 | + option_->GetBinLogSvrConfig()->GetMasterExtLeaseTime()); |
| 47 | } |
| 48 | return OK; |
| 49 | } |
| 50 | |
| 51 | std::string MasterStorage::GetAdminUserName() { |
| 52 | RWLockManager lock(&mutex_, RWLockManager::READ); |
nothing calls this directly
no test coverage detected