[FEAT MERGE] Merge syslog user experience improvement to master

Co-authored-by: Charles0429 <xiezhenjiang@gmail.com>
Co-authored-by: tino247 <tino247@126.com>
Co-authored-by: chaser-ch <chaser.ch@antgroup.com>
This commit is contained in:
stdliu
2023-02-06 15:52:23 +08:00
committed by ob-robot
parent 1de9266dd0
commit f8c5c2647f
796 changed files with 4465 additions and 3036 deletions

View File

@ -366,14 +366,14 @@ void ObPlanCacheObject::dump_deleted_log_info(const bool is_debug_log /* = true
if (is_sql_crsr()) {
const ObPhysicalPlan *plan = dynamic_cast<const ObPhysicalPlan *>(this);
if (OB_ISNULL(plan)) {
LOG_ERROR("the plan is null", K(plan), K(this));
LOG_ERROR_RET(OB_ERR_UNEXPECTED, "the plan is null", K(plan), K(this));
} else {
raw_sql = ObTruncatedString(plan->stat_.raw_sql_, OB_MAX_SQL_LENGTH).string();
}
} else if (is_anon()) {
const pl::ObPLFunction *pl_func = dynamic_cast<const pl::ObPLFunction *>(this);
if (OB_ISNULL(pl_func)) {
LOG_ERROR("the pl_func is null", K(this));
LOG_ERROR_RET(OB_ERR_UNEXPECTED, "the pl_func is null", K(this));
} else {
raw_sql = ObTruncatedString(pl_func->get_stat().raw_sql_, OB_MAX_SQL_LENGTH).string();
}