diff --git a/deps/oblib/src/common/ob_string_buf.h b/deps/oblib/src/common/ob_string_buf.h index 17499f856f..b30046fcd6 100644 --- a/deps/oblib/src/common/ob_string_buf.h +++ b/deps/oblib/src/common/ob_string_buf.h @@ -34,6 +34,10 @@ public: explicit ObStringBufT(const lib::ObLabel &label = ObModIds::OB_STRING_BUF, const int64_t block_size = DEF_MEM_BLOCK_SIZE) : ObStringBufT(lib::ObMemAttr(OB_SERVER_TENANT_ID, label), block_size) {} + explicit ObStringBufT(const int64_t tenant_id, + const lib::ObLabel &label = ObModIds::OB_STRING_BUF, + const int64_t block_size = DEF_MEM_BLOCK_SIZE) + : ObStringBufT(lib::ObMemAttr(tenant_id, label), block_size) {} explicit ObStringBufT(PageArenaT &arena); ~ObStringBufT(); int reset(); diff --git a/src/sql/session/ob_session_val_map.cpp b/src/sql/session/ob_session_val_map.cpp index 4afc35118f..e40587e7e7 100644 --- a/src/sql/session/ob_session_val_map.cpp +++ b/src/sql/session/ob_session_val_map.cpp @@ -43,8 +43,8 @@ ObSessionValMap::ObSessionValMap(const int64_t block_size, : block_allocator_(SMALL_BLOCK_SIZE, common::OB_MALLOC_NORMAL_BLOCK_SIZE, ObMalloc(ObMemAttr(tenant_id, ObModIds::OB_SQL_SESSION_VAR_MAP))), var_name_val_map_allocer_(block_size, block_allocator), - str_buf1_(ObModIds::OB_SQL_SESSION_VAR_MAP), - str_buf2_(ObModIds::OB_SQL_SESSION_VAR_MAP), + str_buf1_(tenant_id, ObModIds::OB_SQL_SESSION_VAR_MAP), + str_buf2_(tenant_id, ObModIds::OB_SQL_SESSION_VAR_MAP), current_buf_index_(0), bucket_allocator_(ObMemAttr(tenant_id, ObModIds::OB_SQL_SESSION_VAR_MAP)), bucket_allocator_wrapper_(&bucket_allocator_),