fix expr tmp result allocator sanity check core

This commit is contained in:
obdev
2022-10-25 18:11:07 +08:00
committed by wangzelin.wzl
parent 8e5fcb688f
commit 33c8a8dd8b
4 changed files with 8 additions and 3 deletions

View File

@ -40,7 +40,7 @@ ObEvalCtx::ObEvalCtx(ObExecContext &exec_ctx)
exec_ctx_(exec_ctx),
tmp_alloc_(exec_ctx.get_eval_tmp_allocator()),
datum_caster_(NULL),
tmp_alloc_used_(false),
tmp_alloc_used_(exec_ctx.get_tmp_alloc_used()),
batch_idx_(0),
batch_size_(0),
expr_res_alloc_(exec_ctx.get_eval_res_allocator())

View File

@ -255,7 +255,7 @@ public:
// Can not use allocator for expression result. (ObExpr::get_str_res_mem() is used for result).
common::ObArenaAllocator &tmp_alloc_;
ObDatumCaster *datum_caster_;
bool tmp_alloc_used_;
bool &tmp_alloc_used_;
private:
int64_t batch_idx_;
int64_t batch_size_;