[to #48891422] update PL C interface signature

This commit is contained in:
0xacc
2023-04-26 15:02:30 +00:00
committed by ob-robot
parent aa50359fed
commit ffb125d10e
3 changed files with 20 additions and 13 deletions

View File

@ -4846,7 +4846,7 @@ int ObSPIService::spi_interface_impl(pl::ObPLExecCtx *ctx, const char *interface
ObString name(interface_name);
PL_C_INTERFACE_t fp = GCTX.pl_engine_->get_interface_service().get_entry(name);
if (nullptr != fp) {
ret = fp(*ctx->exec_ctx_, *ctx->params_, *ctx->result_, *ctx);
ret = fp(*ctx, *ctx->params_, *ctx->result_);
} else {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("Calling C interface which doesn't exist", K(interface_name), K(name));