fix session get tenant timezone bug
This commit is contained in:
parent
d9944fd46b
commit
686b0aba5d
@ -6226,7 +6226,7 @@ int ObBasicSessionInfo::set_time_zone(const ObString &str_val, const bool is_ora
|
||||
if (OB_ERR_UNKNOWN_TIME_ZONE == ret) {
|
||||
ObTZMapWrap tz_map_wrap;
|
||||
ObTimeZoneInfoManager *tz_info_mgr = NULL;
|
||||
if (OB_FAIL(OTTZ_MGR.get_tenant_timezone(tenant_id_, tz_map_wrap, tz_info_mgr))) {
|
||||
if (OB_FAIL(OTTZ_MGR.get_tenant_timezone(effective_tenant_id_, tz_map_wrap, tz_info_mgr))) {
|
||||
LOG_WARN("get tenant timezone with lock failed", K(ret));
|
||||
} else if (OB_ISNULL(tz_info_mgr)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
@ -6282,7 +6282,7 @@ int ObBasicSessionInfo::update_timezone_info()
|
||||
if (cur_time - last_update_tz_time_ > UPDATE_PERIOD) {
|
||||
ObTZMapWrap tz_map_wrap;
|
||||
ObTimeZoneInfoManager *tz_info_mgr = NULL;
|
||||
if (OB_FAIL(OTTZ_MGR.get_tenant_timezone(tenant_id_, tz_map_wrap, tz_info_mgr))) {
|
||||
if (OB_FAIL(OTTZ_MGR.get_tenant_timezone(effective_tenant_id_, tz_map_wrap, tz_info_mgr))) {
|
||||
LOG_WARN("get tenant timezone with lock failed", K(ret));
|
||||
} else if (OB_ISNULL(tz_info_mgr)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user