Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
80a32d62
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
80a32d62
编写于
7月 30, 2022
作者:
D
dapan1121
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fix mbs2ucs4 crash issue in taosd
上级
f1cb48fc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
10 deletion
+8
-10
include/os/osString.h
include/os/osString.h
+0
-1
source/client/src/clientEnv.c
source/client/src/clientEnv.c
+0
-2
source/dnode/mgmt/node_mgmt/src/dmMgmt.c
source/dnode/mgmt/node_mgmt/src/dmMgmt.c
+1
-0
source/os/src/osString.c
source/os/src/osString.c
+7
-7
未找到文件。
include/os/osString.h
浏览文件 @
80a32d62
...
...
@@ -62,7 +62,6 @@ typedef int32_t TdUcs4;
int32_t
taosUcs4len
(
TdUcs4
*
ucs4
);
int64_t
taosStr2int64
(
const
char
*
str
);
int32_t
taosConvInit
(
int32_t
maxNum
);
void
taosConvDestroy
();
int32_t
taosUcs4ToMbs
(
TdUcs4
*
ucs4
,
int32_t
ucs4_max_len
,
char
*
mbs
);
bool
taosMbsToUcs4
(
const
char
*
mbs
,
size_t
mbs_len
,
TdUcs4
*
ucs4
,
int32_t
ucs4_max_len
,
int32_t
*
len
);
...
...
source/client/src/clientEnv.c
浏览文件 @
80a32d62
...
...
@@ -361,8 +361,6 @@ void taos_init_imp(void) {
initQueryModuleMsgHandle
();
taosConvInit
(
256
);
rpcInit
();
SCatalogCfg
cfg
=
{.
maxDBCacheNum
=
100
,
.
maxTblCacheNum
=
100
};
...
...
source/dnode/mgmt/node_mgmt/src/dmMgmt.c
浏览文件 @
80a32d62
...
...
@@ -215,6 +215,7 @@ void dmCleanupDnode(SDnode *pDnode) {
dmClearVars
(
pDnode
);
rpcCleanup
();
indexCleanup
();
taosConvDestroy
();
dDebug
(
"dnode is closed, ptr:%p"
,
pDnode
);
}
...
...
source/os/src/osString.c
浏览文件 @
80a32d62
...
...
@@ -143,14 +143,17 @@ SConv *gConv = NULL;
int32_t
convUsed
=
0
;
int32_t
gConvMaxNum
=
0
;
int32_t
taosConvInit
(
int32_t
maxNum
)
{
gConvMaxNum
=
maxNum
*
2
;
void
taosConvInitImpl
(
void
)
{
gConvMaxNum
=
51
2
;
gConv
=
taosMemoryCalloc
(
gConvMaxNum
,
sizeof
(
SConv
));
for
(
int32_t
i
=
0
;
i
<
gConvMaxNum
;
++
i
)
{
gConv
[
i
].
conv
=
iconv_open
(
DEFAULT_UNICODE_ENCODEC
,
tsCharset
);
}
}
return
0
;
static
TdThreadOnce
convInit
=
PTHREAD_ONCE_INIT
;
void
taosConvInit
()
{
taosThreadOnce
(
&
convInit
,
taosConvInitImpl
);
}
void
taosConvDestroy
()
{
...
...
@@ -162,10 +165,7 @@ void taosConvDestroy() {
void
taosAcquireConv
(
int32_t
*
idx
)
{
if
(
0
==
gConvMaxNum
)
{
gConv
=
taosMemoryCalloc
(
1
,
sizeof
(
SConv
));
gConv
[
0
].
conv
=
iconv_open
(
DEFAULT_UNICODE_ENCODEC
,
tsCharset
);
*
idx
=
0
;
return
;
taosConvInit
();
}
while
(
true
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录