[CP] Standardize usage of ObAsyncRpcProxy

This commit is contained in:
tino247
2023-11-16 06:15:24 +00:00
committed by ob-robot
parent b6d3ba3007
commit bfa8606371
28 changed files with 433 additions and 361 deletions

View File

@ -8397,6 +8397,13 @@ void ObDetectMasterRsLSResult::reset()
ls_info_.reset();
}
bool ObDetectMasterRsLSResult::is_valid() const
{
return ObRole::INVALID_ROLE != role_ // sys ls replica is leader/follower
|| master_rs_.is_valid(); // sys ls replica not exist
}
void ObDetectMasterRsLSResult::set_role(const common::ObRole &role)
{
role_ = role;