fix rs test and opt hb service threads

This commit is contained in:
linqiucen 2023-10-10 14:10:13 +00:00 committed by ob-robot
parent d06948658f
commit 269a531263

View File

@ -71,6 +71,8 @@ int ObHeartbeatService::init()
if (OB_UNLIKELY(is_inited_)) {
ret = OB_INIT_TWICE;
LOG_WARN("has already inited", KR(ret), K(is_inited_));
} else if (MTL_ID() != OB_SYS_TENANT_ID) {
// only create hb service threads in sys tenant
} else if (OB_ISNULL(srv_rpc_proxy_)) {
ret = OB_ERR_UNEXPECTED;
HBS_LOG_ERROR("srv_rpc_proxy_ is null", KR(ret), KP(srv_rpc_proxy_));