tenant ctx switch
This commit is contained in:
@ -142,6 +142,7 @@ void ObTimeZoneInfoManager::TaskProcessThread::handle(void *task)
|
||||
int ObTimeZoneInfoManager::fetch_time_zone_info()
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
MTL_SWITCH(tenant_id_) {
|
||||
if (OB_UNLIKELY(!inited_)) {
|
||||
ret = OB_NOT_INIT;
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user