Add ctx id from connect by allocator.
This commit is contained in:
		| @ -248,6 +248,7 @@ int ObConnectByOpPump::init(const ObNLConnectBySpec &connect_by, ObNLConnectByOp | ||||
|   } else { | ||||
|     uint64_t tenant_id = eval_ctx.exec_ctx_.get_my_session()->get_effective_tenant_id(); | ||||
|     allocator_.set_tenant_id(tenant_id); | ||||
|     allocator_.set_ctx_id(ObCtxIds::WORK_AREA); | ||||
|     connect_by_prior_exprs_ = &connect_by.connect_by_prior_exprs_; | ||||
|     eval_ctx_ = &eval_ctx; | ||||
|     connect_by_ = &connect_by_op; | ||||
|  | ||||
| @ -56,6 +56,10 @@ private: | ||||
|     { | ||||
|       allocator_.set_tenant_id(tenant_id); | ||||
|     } | ||||
|     void set_ctx_id(int64_t ctx_id) | ||||
|     { | ||||
|       allocator_.set_ctx_id(ctx_id); | ||||
|     } | ||||
|   private: | ||||
|     common::ObArenaAllocator allocator_; | ||||
|     int64_t alloc_cnt_; | ||||
|  | ||||
| @ -279,6 +279,7 @@ int ObConnectByOpBFSPump::init(ObNLConnectByWithIndexSpec &connect_by, | ||||
|   } else { | ||||
|     uint64_t tenant_id = eval_ctx.exec_ctx_.get_my_session()->get_effective_tenant_id(); | ||||
|     allocator_.set_tenant_id(tenant_id); | ||||
|     allocator_.set_ctx_id(ObCtxIds::WORK_AREA); | ||||
|     connect_by_ = &connect_by_op; | ||||
|     connect_by_prior_exprs_ = &connect_by.connect_by_prior_exprs_; | ||||
|     left_prior_exprs_ = &connect_by.left_prior_exprs_; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 obdev
					obdev