tenant ctx switch

This commit is contained in:
obdev
2022-10-27 04:06:07 +00:00
committed by wangzelin.wzl
parent 422b2c0c60
commit 1a6d072a1c

View File

@ -142,6 +142,7 @@ void ObTimeZoneInfoManager::TaskProcessThread::handle(void *task)
int ObTimeZoneInfoManager::fetch_time_zone_info() int ObTimeZoneInfoManager::fetch_time_zone_info()
{ {
int ret = OB_SUCCESS; int ret = OB_SUCCESS;
MTL_SWITCH(tenant_id_) {
if (OB_UNLIKELY(!inited_)) { if (OB_UNLIKELY(!inited_)) {
ret = OB_NOT_INIT; ret = OB_NOT_INIT;
LOG_WARN("not init", K(ret)); LOG_WARN("not init", K(ret));
@ -179,6 +180,8 @@ int ObTimeZoneInfoManager::fetch_time_zone_info()
LOG_WARN("fetch timezone info from tenant tz table failed", K(ret)); LOG_WARN("fetch timezone info from tenant tz table failed", K(ret));
} }
} }
}
return ret; return ret;
} }