Add error codes for sql module, !! Please Read Task Description Carefully!!
This commit is contained in:
@ -269,7 +269,7 @@ int ObFLTControlInfoManager::set_control_info(sql::ObExecContext &ctx)
|
||||
if (OB_ISNULL(sql_proxy)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("sql_proxy is null", K(ret));
|
||||
} else if (sql.assign_fmt("ALTER SYSTEM SET `_trace_control_info` = '%s'", trace_info.ptr())) {
|
||||
} else if (OB_FAIL(sql.assign_fmt("ALTER SYSTEM SET `_trace_control_info` = '%s'", trace_info.ptr()))) {
|
||||
LOG_WARN("failed to set trace control info", K(ret));
|
||||
} else if (OB_FAIL(sql_proxy->write(tenant_id_, sql.ptr(), affected_rows))) {
|
||||
LOG_WARN("execute sql failed", K(ret), K(sql));
|
||||
|
||||
@ -81,6 +81,7 @@ int ObExecStatCollector::collect_plan_monitor_info(uint64_t job_id,
|
||||
if (OB_FAIL(monitor_info->get_operator_info_by_index(i, op_info))) {
|
||||
SQL_MONITOR_LOG(WARN, "fail to get operator info by index", K(ret), K(i));
|
||||
} else if (OB_ISNULL(op_info)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
SQL_MONITOR_LOG(WARN, "get invalie op_info", K(ret), K(op_info));
|
||||
} else if (OB_FAIL(op_info->set_job_id(job_id))) {
|
||||
SQL_MONITOR_LOG(WARN, "fail to set job id", K(ret), K(job_id));
|
||||
|
||||
Reference in New Issue
Block a user