fix typos

This commit is contained in:
Klawz 2022-10-10 11:23:34 +08:00
parent cdf8f6f49c
commit 9e735ccffa
8 changed files with 22 additions and 22 deletions

View File

@ -317,7 +317,7 @@ int ObMPBase::free_session()
LOG_INFO("free session successfully", K(ctx));
conn->is_sess_free_ = true;
if (OB_UNLIKELY(OB_FAIL(sql::ObSQLSessionMgr::is_need_clear_sessid(conn, is_need_clear)))) {
LOG_ERROR("fail to jugde need clear", K(ret), "sessid", conn->sessid_, "server_id", GCTX.server_id_);
LOG_ERROR("fail to judge need clear", K(ret), "sessid", conn->sessid_, "server_id", GCTX.server_id_);
} else if (is_need_clear) {
if (OB_FAIL(GCTX.session_mgr_->mark_sessid_unused(conn->sessid_))) {
LOG_WARN("mark session id unused failed", K(ret), "sessid", conn->sessid_);

View File

@ -81,7 +81,7 @@ int ObMPDisconnect::run()
EVENT_INC(SQL_USER_LOGOUTS_CUMULATIVE);
LOG_INFO("free session successfully", "sessid", ctx_.sessid_);
if (OB_UNLIKELY(OB_FAIL(sql::ObSQLSessionMgr::is_need_clear_sessid(&conn, is_need_clear)))) {
LOG_ERROR("fail to jugde need clear", K(ret), "sessid", conn.sessid_, "server_id", GCTX.server_id_);
LOG_ERROR("fail to judge need clear", K(ret), "sessid", conn.sessid_, "server_id", GCTX.server_id_);
} else if (is_need_clear) {
if (OB_FAIL(GCTX.session_mgr_->mark_sessid_unused(conn.sessid_))) {
LOG_WARN("mark session id unused failed", K(ret), "sessid", conn.sessid_);

View File

@ -214,7 +214,7 @@ void ObSMConnectionCallback::destroy(ObSMConnection& conn)
}
} else {
if (OB_UNLIKELY(OB_FAIL(sql::ObSQLSessionMgr::is_need_clear_sessid(&conn, is_need_clear)))) {
LOG_ERROR("fail to jugde need clear", K(ret));
LOG_ERROR("fail to judge need clear", K(ret));
} else if (is_need_clear) {
if (OB_FAIL(GCTX.session_mgr_->mark_sessid_unused(conn.sessid_))) {
LOG_ERROR("fail to mark sessid unused", K(ret), K(conn.sessid_),

View File

@ -240,7 +240,7 @@ int ObSMHandler::on_close(easy_connection_t *c)
}
} else {
if (OB_UNLIKELY(OB_FAIL(sql::ObSQLSessionMgr::is_need_clear_sessid(conn, is_need_clear)))) {
LOG_ERROR("fail to jugde need clear", K(ret));
LOG_ERROR("fail to judge need clear", K(ret));
} else if (is_need_clear) {
if (OB_UNLIKELY(OB_FAIL(gctx_.session_mgr_->mark_sessid_unused(conn->sessid_)))) {
LOG_ERROR("fail to mark sessid unused", K(ret), K(conn->sessid_),

View File

@ -319,7 +319,7 @@ int ObGetObjectDefinition::get_constraint_definition(ObString &ddl_str,
LOG_WARN("get constraint info failed", K(ret), K(tenant_id),
K(database_id), K(constraint_name));
} else if (OB_INVALID_ID == (constraint_id = constraint_info.constraint_id_)) {
// The unique constrant is mocked by a unique index.
// The unique constraint is mocked by a unique index.
// If other types of constraint is not exist, we will try to find if the uk exists.
// bool is_unique_constraint_exist = false;
if (OB_FAIL(schema_guard_->get_idx_schema_by_origin_idx_name(

View File

@ -1101,7 +1101,7 @@ int ObOptimizer::update_column_usage_infos()
LOG_WARN("get unexpected null", K(ret), K(optstat_monitor_mgr));
} else if (OB_FAIL(optstat_monitor_mgr->update_local_cache(ctx_.get_column_usage_infos()))) {
LOG_WARN("failed to update local cache", K(ret));
} else {/*do nothiing*/}
} else {/*do nothing*/}
}
}
return ret;

View File

@ -972,7 +972,7 @@ int ObQueryRange::refine_large_range_graph(ObKeyPart *&key_part, bool use_in_opt
} else {
new_key->id_ = key_part->id_;
key_part = new_key;
LOG_TRACE("refine lagre query range with full key", K(cur_range_size));
LOG_TRACE("refine large query range with full key", K(cur_range_size));
}
} else if (OB_ISNULL(first_keypart = pre_key_parts.at(0))) {
ret = OB_ERR_UNEXPECTED;
@ -985,7 +985,7 @@ int ObQueryRange::refine_large_range_graph(ObKeyPart *&key_part, bool use_in_opt
LOG_WARN("remove precise range expr failed", K(ret));
} else {
// remove key part after pre key parts
LOG_TRACE("refine lagre query range remove some key parts",
LOG_TRACE("refine large query range remove some key parts",
K(cur_range_size), K(redundant_offset));
ObKeyPart *cur = NULL;;
ObKeyPart *and_next = NULL;
@ -1800,7 +1800,7 @@ int ObQueryRange::get_column_key_part(const ObRawExpr *l_expr,
} else if(OB_FAIL(ObQueryRange::is_precise_like_range(val,
escape_ch,
query_range_ctx_->cur_expr_is_precise_))) {
LOG_WARN("failed to jugde whether is precise", K(ret));
LOG_WARN("failed to judge whether is precise", K(ret));
} else if (OB_FAIL(add_precise_constraint(const_expr,
query_range_ctx_->cur_expr_is_precise_))) {
LOG_WARN("failed to add precise constraint", K(ret));
@ -2261,7 +2261,7 @@ int ObQueryRange::get_like_const_range(const ObRawExpr *text_expr,
// Under this kind of case, in fact we can ignore the second item and do next
// 2) not real true, row(k1, k2, k2)>=(1, k1, 4), "k2>=k1" is run-time defined,
// we can not know during parser, so true is returned.
// under this case, we can not ignore it. (k1=1 and k2=3) satisfied this condtion,
// under this case, we can not ignore it. (k1=1 and k2=3) satisfied this condition,
// but not satisfied row(k1, k2)>=(1, 4)
// we can not distinguish them, so do not do next.
// 2. if item is always false, no need to do next
@ -2967,7 +2967,7 @@ int ObQueryRange::prepare_multi_in_info(const ObOpRawExpr *l_expr,
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret), K(l_expr), K(r_expr));
} else if (OB_UNLIKELY(l_expr->get_param_count() > MAX_EXTRACT_IN_COLUMN_NUMBER)) {
// do nothiing
// do nothing
} else if (OB_FAIL(idx_pos_map.create(l_expr->get_param_count(), "IdxKeyMap", "IdxKeyMap"))) {
LOG_WARN("fail to init hashmap", K(ret));
} else if (OB_FAIL(idx_param_map.create(l_expr->get_param_count(), "IdxParamMap", "IdxParamMap"))) {
@ -3553,7 +3553,7 @@ int ObQueryRange::set_geo_keypart_whole_range(ObKeyPart &out_key_part)
ret = OB_ERR_UNEXPECTED;
LOG_WARN("normal keypart is null", K(ret));
} else {
// set whole range when cosnt expr calculate failed in constant fold
// set whole range when const expr calculate failed in constant fold
out_key_part.normal_keypart_->start_.set_min_value();
out_key_part.normal_keypart_->end_.set_max_value();
out_key_part.normal_keypart_->always_false_ = false;
@ -4248,7 +4248,7 @@ int ObQueryRange::intersect_border_from(const ObKeyPart *l_key_part,
end_border_type = OB_FROM_RIGHT;
} else if (cmp < 0) {
end_border_type = OB_FROM_LEFT;
} else { // euqal
} else { // equal
if (NULL == l_key_part->and_next_) {
end_border_type = OB_FROM_LEFT; // lucky left
}
@ -4414,7 +4414,7 @@ int ObQueryRange::set_partial_row_border(
//
// ROW(k1(s1, e1), k2(s2, e2)) and ROW(k1(s3, e4), k2(s3, e4))
// k1(s1, e1): means the first key part in row between s1 and e1.
// because the and operands is row, we can not AND each key part separtely.
// because the and operands is row, we can not AND each key part separately.
// so the result is:
// ROW(k1(ns1, ne1), k2(ns2, ne2)), if two row values has intersection.
// if s1>s3, ns1 = s1 and ns2 = s2 else ns1 = s3 and ns2 = s4;
@ -4897,7 +4897,7 @@ int ObQueryRange::and_single_gt_head_graphs(
l_and_next = l_cur_gt;
} else { // l_cur_gt and r_cur_gt belongs to same key
if (OB_FAIL(do_gt_and(l_cur_gt, r_cur_gt, tmp_result))) {
LOG_WARN("Do AND of gerneral term failed", K(ret));
LOG_WARN("Do AND of general term failed", K(ret));
}
}
if (OB_FAIL(ret)) {
@ -6188,7 +6188,7 @@ int ObQueryRange::generate_single_range(ObSearchState &search_state,
LOG_ERROR("alloc memory for end_obj failed", K(ret));
} else {
int64_t max_pred_index = search_state.max_exist_index_;
column_num = search_state.is_phy_rowid_range_ ? 1 : column_num;//physcial rowid range just use only one column
column_num = search_state.is_phy_rowid_range_ ? 1 : column_num;//physical rowid range just use only one column
for (int i = 0; OB_SUCC(ret) && i < column_num; i++) {
new(start + i) ObObj();
new(end + i) ObObj();
@ -6372,7 +6372,7 @@ int ObQueryRange::and_first_search(ObSearchState &search_state,
}
// 3. to check if need to output
//copy_produec_range的作用是控制range能不能够输出,不是所有递归到最后都能输出
//copy_produce_range的作用是控制range能不能够输出,不是所有递归到最后都能输出
//例如:a>1 and a<=2 and ((b>1 and b < 2) or (b > 4, and b < 5))
//这个例子不能抽成两段range,只能抽成一段range
//因为如果抽成两段range->(1, max;2, 2) or (1, max;2, 5)这两段区间是有重叠的
@ -7475,7 +7475,7 @@ int ObQueryRange::get_like_range(const ObObj &pattern,
return ret;
}
// Generaal term: if one or more same key parts with OR realtion have same and_next_,
// General term: if one or more same key parts with OR relation have same and_next_,
// we call them general term(GT)
// E.g.
// A and B, A is GT
@ -8493,7 +8493,7 @@ bool ObQueryRange::check_like_range_precise(const ObString &pattern_str,
if ((end_with_percent || match_without_wildcard) &&
(-1 == last_equal_idx || pattern_str_buf[last_equal_idx] != ' ')) {
if (!is_oracle_mode() && match_without_wildcard) {
// in mysql, all operater will ignore trailing spaces except like.
// in mysql, all operator will ignore trailing spaces except like.
// for example, 'abc ' = 'abc' is true, but 'abc ' like 'abc' is false
} else {
is_precise = true;

View File

@ -357,10 +357,10 @@ public:
void reset();
// preliminary_extract_query_range will prelininary extract query range
// preliminary_extract_query_range will preliminary extract query range
// from query conditions, which is only occurred in generating the physical plan.
// During this stage, some consts are not really known, for example,
// prepared params, session variables, global variables, now(), curret_timestamp(),
// prepared params, session variables, global variables, now(), current_timestamp(),
// utc_timestamp, etc..
// final extraction may be need in physical plan open.
@ -399,7 +399,7 @@ public:
const bool use_in_optimization = false);
// final_extract_query_range extracts the final query range of its physical plan.
// It will get the real-time value of some const which are unknow during physical plan generating.
// It will get the real-time value of some const which are unknown during physical plan generating.
// Query range can not be used until this function is called.
int final_extract_query_range(ObExecContext &exec_ctx,