[CP] Split prepare stmt memory to tenants

This commit is contained in:
obdev
2023-07-13 05:18:17 +00:00
committed by ob-robot
parent 58d0d34e2c
commit 91889593fd
7 changed files with 24 additions and 21 deletions

View File

@ -23,11 +23,10 @@ template<int64_t MAX_RESERVE_SIZE = 0>
class ObReserveArenaAllocator : public ObIAllocator
{
public:
ObReserveArenaAllocator(const lib::ObLabel &label,
const int64_t page_size = OB_MALLOC_NORMAL_BLOCK_SIZE,
int64_t tenant_id = OB_SERVER_TENANT_ID)
ObReserveArenaAllocator(const lib::ObMemAttr &attr,
const int64_t page_size = OB_MALLOC_NORMAL_BLOCK_SIZE)
: pos_(0),
allocator_(label, page_size, tenant_id)
allocator_(attr, page_size)
{
OB_ASSERT(MAX_RESERVE_SIZE >= 0);
}