fix some typo error

This commit is contained in:
obdev
2023-09-08 12:35:44 +08:00
committed by ob-robot
parent 23e5e34042
commit ca21045824
21 changed files with 86 additions and 86 deletions

View File

@ -24,7 +24,7 @@ namespace oceanbase
{
namespace sql
{
// for client identfier
// for client identifier
static const char TYPE_I[] = "type_i";
// for mod_act
static const char TYPE_MOD_ACT[] = "type_m";
@ -147,7 +147,7 @@ namespace sql
common::ObSEArray<ObModActConInfo, 1, common::ModulePageAllocator, true> mod_infos_;
// tenant trace
FLTControlInfo tenant_info_;
// allcator
// allocator
ObArenaAllocator alloc_;
};

View File

@ -367,7 +367,7 @@ struct ObAuditRecordData {
int64_t plan_id_;
int64_t affected_rows_;//delete,update,insert影响的行数,及select选出的行数
int64_t return_rows_;
int64_t partition_cnt_;//该请求涉及的所以parttion个数
int64_t partition_cnt_;//该请求涉及的所以partition个数
int64_t expected_worker_cnt_; // px 预期分配线程数
int64_t used_worker_cnt_; // px 实际分配线程数
int64_t try_cnt_; //尝试执行次数

View File

@ -82,7 +82,7 @@ int ObExecStatCollector::collect_plan_monitor_info(uint64_t job_id,
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));
SQL_MONITOR_LOG(WARN, "get invalid 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));
} else if (OB_FAIL(op_info->set_task_id(task_id))) {
@ -142,7 +142,7 @@ int ObExecStatDispatch::dispatch(bool need_add_monitor,
} else if (need_add_monitor && OB_FAIL(monitor_info->add_operator_info(op_info))) {
LOG_WARN("fail to add operator info", K(ret), K(op_info));
} else if (need_update_plan && OB_FAIL(plan->op_stats_.add_op_stat(op_info))) {
LOG_WARN("fail to add operatgor info", K(ret), K(op_info));
LOG_WARN("fail to add operator info", K(ret), K(op_info));
}
break;
}

View File

@ -69,7 +69,7 @@ int ObPhyOperatorStats::add_op_stat(ObPhyOperatorMonitorInfo &info)
int64_t stat_start_index = copy_start_index + info.get_op_id() * StatId::MAX_STAT;
if (stat_start_index < 0 || stat_start_index + StatId::MAX_STAT > array_size_) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("invaild array index", K(stat_start_index), K(array_size_));
LOG_WARN("invalid array index", K(stat_start_index), K(array_size_));
} else {
int64_t last_input_rows = 0;
int64_t last_output_rows = 0;

View File

@ -41,7 +41,7 @@ int ObPhyPlanMonitorInfo::get_operator_info(int64_t op_id, ObPhyOperatorMonitorI
ARRAY_FOREACH_NORET(operator_infos_, idx) {
if (operator_infos_.at(idx).get_op_id() == op_id) {
if (OB_FAIL(info.assign(operator_infos_.at(idx)))) {
LOG_WARN("fail to assgin to phy_operator info", K(ret));
LOG_WARN("fail to assign to phy_operator info", K(ret));
} else {
ret = OB_SUCCESS;
}

View File

@ -513,7 +513,7 @@ int ObSqlPlan::escape_quotes(ObSqlPlanItem &plan_item)
}
/**
* escape qutotes for string value
* escape quotes for string value
* oracle: ' => ''
* mysql: ' => \'
*/
@ -532,7 +532,7 @@ int ObSqlPlan::inner_escape_quotes(char* &ptr, int64_t &length)
int64_t pos = 0;
if (OB_ISNULL(buf=(char*)allocator_.alloc(buf_len))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("failed to allocate mempry", K(ret));
LOG_WARN("failed to allocate memory", K(ret));
} else {
for (int64_t i = 0; i < length; ++i) {
if (ptr[i] == '\'') {