fix error code coverage bug
This commit is contained in:
@ -108,18 +108,24 @@ int ObExplainLogPlan::generate_raw_plan()
|
|||||||
buf[ObLogValues::MAX_EXPLAIN_BUFFER_SIZE - 1] = '\0';
|
buf[ObLogValues::MAX_EXPLAIN_BUFFER_SIZE - 1] = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ObObj obj;
|
|
||||||
obj.set_varchar(ObString::make_string(buf));
|
if (OB_SUCC(ret)) {
|
||||||
ObNewRow row;
|
ObObj obj;
|
||||||
row.cells_ = &obj;
|
obj.set_varchar(ObString::make_string(buf));
|
||||||
row.count_ = 1;
|
ObNewRow row;
|
||||||
values->add_row(row);
|
row.cells_ = &obj;
|
||||||
set_phy_plan_type(OB_PHY_PLAN_LOCAL);
|
row.count_ = 1;
|
||||||
set_plan_root(values);
|
if (OB_FAIL(values->add_row(row))) {
|
||||||
values->mark_is_plan_root();
|
LOG_WARN("failed to add row", K(ret));
|
||||||
// set values operator id && set max operator id for LogPlan
|
} else {
|
||||||
values->set_op_id(0);
|
set_phy_plan_type(OB_PHY_PLAN_LOCAL);
|
||||||
set_max_op_id(1);
|
set_plan_root(values);
|
||||||
|
values->mark_is_plan_root();
|
||||||
|
// set values operator id && set max operator id for LogPlan
|
||||||
|
values->set_op_id(0);
|
||||||
|
set_max_op_id(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (NULL != buf) {
|
if (NULL != buf) {
|
||||||
get_allocator().free(buf);
|
get_allocator().free(buf);
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user