[CP] sql_nio memory_pool allocate memory form tenant after get tenant_id
This commit is contained in:
@ -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:
|
||||
|
||||
1
deps/oblib/src/rpc/obrpc/ob_rpc_mem_pool.h
vendored
1
deps/oblib/src/rpc/obrpc/ob_rpc_mem_pool.h
vendored
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user