Skip to content

Commit e21d828

Browse files
obdevfootka
authored andcommitted
[CP] [Fixbug] ik词典加载时使用不同的name导致泄露固定字节数的内存
Co-authored-by: footka <672528926@qq.com>
1 parent 10c55ef commit e21d828

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sql/engine/expr/ob_expr_tokenize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ int ObExprTokenize::TokenizeParam::try_load_dictionary_for_ik(const uint64_t ten
449449
} else if (need_to_load_dic) {
450450
if (OB_FAIL(ObGenDicLoader::get_instance().get_dic_loader(
451451
tenant_id,
452-
parser_name_,
452+
ObString::make_string(ObFTSLiteral::PARSER_NAME_IK), // currently only ik, use parser_name_ without version suffix
453453
ObCharset::charset_type_by_coll(meta_.get_collation_type()),
454454
dic_loader_handle))) {
455455
LOG_WARN("fail to get dic loader", K(ret), K(tenant_id));

0 commit comments

Comments
 (0)