From 686b0aba5d27c944f3c02d8a967d1525ec346edc Mon Sep 17 00:00:00 2001 From: sdc Date: Fri, 19 Apr 2024 06:15:46 +0000 Subject: [PATCH] fix session get tenant timezone bug --- src/sql/session/ob_basic_session_info.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/session/ob_basic_session_info.cpp b/src/sql/session/ob_basic_session_info.cpp index 1d2330fc3..6954774b9 100644 --- a/src/sql/session/ob_basic_session_info.cpp +++ b/src/sql/session/ob_basic_session_info.cpp @@ -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;