fix sql executor use memory of 500 tenant

This commit is contained in:
obdev
2023-04-19 08:15:11 +00:00
committed by ob-robot
parent ff0be6d455
commit 6e8c6def52
5 changed files with 16 additions and 0 deletions

View File

@ -392,6 +392,9 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor,
}
} else {
tmp_exec_ctx.set_my_session(&session);
tmp_exec_ctx.set_mem_attr(ObMemAttr(session.get_effective_tenant_id(),
ObModIds::OB_SQL_EXEC_CONTEXT,
ObCtxIds::EXECUTE_CTX_ID));
exec_ctx = &tmp_exec_ctx;
if (OB_ISNULL(cursor.get_spi_cursor())) {
ret = OB_ERR_UNEXPECTED;