Fix expr calc using system tenant memory

This commit is contained in:
obdev
2022-11-10 09:07:23 +00:00
committed by wangzelin.wzl
parent 0621c4812e
commit 737080792e
3 changed files with 12 additions and 2 deletions

View File

@ -65,8 +65,7 @@ void ObOpKitStore::destroy()
}
ObExecContext::ObExecContext(ObIAllocator &allocator)
: sche_allocator_("ExecCtx", OB_MALLOC_NORMAL_BLOCK_SIZE),
allocator_(allocator),
: allocator_(allocator),
phy_op_size_(0),
phy_op_ctx_store_(NULL),
phy_op_input_store_(NULL),

View File

@ -448,6 +448,12 @@ public:
int64_t get_register_op_id() { return register_op_id_; }
void set_register_op_id(int64_t id) { register_op_id_ = id; }
bool is_rt_monitor_node_registered() { return OB_INVALID_ID != register_op_id_; }
void set_mem_attr(const common::ObMemAttr& attr)
{
sche_allocator_.set_attr(attr);
eval_res_allocator_.set_attr(attr);
eval_tmp_allocator_.set_attr(attr);
}
private:
int build_temp_expr_ctx(const ObTempExpr &temp_expr, ObTempExprCtx *&temp_expr_ctx);
int set_phy_op_ctx_ptr(uint64_t index, void *phy_op);