[CP] Standardize usage of ObAsyncRpcProxy
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user