[CP] Fix: User variable 500 tenant split

This commit is contained in:
obdev
2024-02-09 03:53:57 +00:00
committed by ob-robot
parent f5944cdbf0
commit 56d019587a
2 changed files with 6 additions and 2 deletions

View File

@ -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();

View File

@ -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_),