Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
电商架构修炼
TDengine
提交
1db01cf0
TDengine
项目概览
电商架构修炼
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1db01cf0
编写于
1月 21, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-2805
上级
9167cf93
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
16 addition
and
7 deletion
+16
-7
src/balance/src/bnThread.c
src/balance/src/bnThread.c
+1
-1
src/dnode/src/dnodeTelemetry.c
src/dnode/src/dnodeTelemetry.c
+1
-1
src/plugins/http/src/httpServer.c
src/plugins/http/src/httpServer.c
+4
-1
src/plugins/monitor/src/monMain.c
src/plugins/monitor/src/monMain.c
+4
-1
src/rpc/src/rpcTcp.c
src/rpc/src/rpcTcp.c
+1
-1
src/util/src/tcache.c
src/util/src/tcache.c
+3
-1
src/vnode/src/vnodeMain.c
src/vnode/src/vnodeMain.c
+2
-1
未找到文件。
src/balance/src/bnThread.c
浏览文件 @
1db01cf0
...
...
@@ -56,7 +56,7 @@ int32_t bnInitThread() {
pthread_attr_destroy
(
&
thattr
);
if
(
ret
!=
0
)
{
mError
(
"failed to create balance thread since %s"
,
strerror
(
errno
));
mError
(
"failed to create balance thread since %s"
,
strerror
(
ret
));
return
-
1
;
}
...
...
src/dnode/src/dnodeTelemetry.c
浏览文件 @
1db01cf0
...
...
@@ -291,7 +291,7 @@ int32_t dnodeInitTelemetry() {
int32_t
code
=
pthread_create
(
&
tsTelemetryThread
,
&
attr
,
telemetryThread
,
NULL
);
pthread_attr_destroy
(
&
attr
);
if
(
code
!=
0
)
{
dTrace
(
"failed to create telemetry thread, reason:%s"
,
strerror
(
errno
));
dTrace
(
"failed to create telemetry thread, reason:%s"
,
strerror
(
code
));
}
dInfo
(
"dnode telemetry is initialized"
);
...
...
src/plugins/http/src/httpServer.c
浏览文件 @
1db01cf0
...
...
@@ -60,7 +60,10 @@ void httpCleanUpConnect() {
HttpServer
*
pServer
=
&
tsHttpServer
;
if
(
pServer
->
pThreads
==
NULL
)
return
;
pthread_join
(
pServer
->
thread
,
NULL
);
if
(
taosCheckPthreadValid
(
pServer
->
thread
)
{
pthread_join
(
pServer
->
thread
,
NULL
);
}
for
(
int32_t
i
=
0
;
i
<
pServer
->
numOfThreads
;
++
i
)
{
HttpThread
*
pThread
=
pServer
->
pThreads
+
i
;
if
(
pThread
!=
NULL
)
{
...
...
src/plugins/monitor/src/monMain.c
浏览文件 @
1db01cf0
...
...
@@ -246,7 +246,10 @@ void monStopSystem() {
void
monCleanupSystem
()
{
tsMonitor
.
quiting
=
1
;
monStopSystem
();
pthread_join
(
tsMonitor
.
thread
,
NULL
);
if
(
taosCheckPthreadValid
(
tsMonitor
.
thread
))
{
pthread_join
(
tsMonitor
.
thread
,
NULL
);
}
if
(
tsMonitor
.
conn
!=
NULL
)
{
taos_close
(
tsMonitor
.
conn
);
tsMonitor
.
conn
=
NULL
;
...
...
src/rpc/src/rpcTcp.c
浏览文件 @
1db01cf0
...
...
@@ -154,7 +154,7 @@ void *taosInitTcpServer(uint32_t ip, uint16_t port, char *label, int numOfThread
if
(
code
==
0
)
{
code
=
pthread_create
(
&
pServerObj
->
thread
,
&
thattr
,
taosAcceptTcpConnection
,
(
void
*
)
pServerObj
);
if
(
code
!=
0
)
{
tError
(
"%s failed to create TCP accept thread(%s)"
,
label
,
strerror
(
errno
));
tError
(
"%s failed to create TCP accept thread(%s)"
,
label
,
strerror
(
code
));
}
}
...
...
src/util/src/tcache.c
浏览文件 @
1db01cf0
...
...
@@ -510,7 +510,9 @@ void taosCacheCleanup(SCacheObj *pCacheObj) {
}
pCacheObj
->
deleting
=
1
;
pthread_join
(
pCacheObj
->
refreshWorker
,
NULL
);
if
(
taosCheckPthreadValid
(
pCacheObj
->
refreshWorker
))
{
pthread_join
(
pCacheObj
->
refreshWorker
,
NULL
);
}
uInfo
(
"cache:%s will be cleaned up"
,
pCacheObj
->
name
);
doCleanupDataCache
(
pCacheObj
);
...
...
src/vnode/src/vnodeMain.c
浏览文件 @
1db01cf0
...
...
@@ -201,6 +201,8 @@ int32_t vnodeOpen(int32_t vgId) {
pthread_mutex_init
(
&
pVnode
->
statusMutex
,
NULL
);
vnodeSetInitStatus
(
pVnode
);
tsdbIncCommitRef
(
pVnode
->
vgId
);
int32_t
code
=
vnodeReadCfg
(
pVnode
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
vnodeCleanUp
(
pVnode
);
...
...
@@ -297,7 +299,6 @@ int32_t vnodeOpen(int32_t vgId) {
pVnode
->
events
=
NULL
;
vDebug
(
"vgId:%d, vnode is opened in %s, pVnode:%p"
,
pVnode
->
vgId
,
rootDir
,
pVnode
);
tsdbIncCommitRef
(
pVnode
->
vgId
);
vnodeAddIntoHash
(
pVnode
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录