fix show trace cannot find root span while adaptting upstream
This commit is contained in:
@ -709,6 +709,9 @@ int ObShowResolver::resolve(const ParseNode &parse_tree)
|
||||
if (OB_UNLIKELY(parse_tree.num_child_ != 2 || NULL == parse_tree.children_)) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("parse tree is wrong", K(ret), K(parse_tree.num_child_), K(parse_tree.children_));
|
||||
} else if (!session_info_->get_control_info().is_valid()) {
|
||||
ret = OB_NOT_SUPPORTED;
|
||||
LOG_USER_ERROR(OB_NOT_SUPPORTED, "If full link tracing is not enabled, show trace is");
|
||||
} else {
|
||||
show_resv_ctx.condition_node_ = parse_tree.children_[0];
|
||||
show_resv_ctx.stmt_type_ = stmt::T_SHOW_TRACE;
|
||||
|
||||
Reference in New Issue
Block a user