[CP] sql_nio memory_pool allocate memory form tenant after get tenant_id

This commit is contained in:
obdev
2024-02-08 19:15:38 +00:00
committed by ob-robot
parent d1347a4485
commit 72bcc7d7b2
3 changed files with 10 additions and 0 deletions

View File

@ -30,6 +30,7 @@ public:
ObSqlSessionMemPool(): pool_() {}
virtual ~ObSqlSessionMemPool() {}
void* alloc(int64_t sz) { return pool_.alloc(sz); }
void set_tenant_id(int64_t tenant_id) { pool_.set_tenant_id(tenant_id); }
void reset() { pool_.destroy(); }
void reuse() { pool_.reuse(); }
private:

View File

@ -28,6 +28,7 @@ public:
~ObRpcMemPool() { destroy(); }
static ObRpcMemPool* create(int64_t tenant_id, const char* label, int64_t req_sz);
void* alloc(int64_t sz);
void set_tenant_id(int64_t tenant_id) { tenant_id_ = tenant_id; }
void reuse();
void destroy();
private: