Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
7409fda3
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
7409fda3
编写于
7月 24, 2021
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-225] update the thread name
上级
74f0030f
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
18 addition
and
27 deletion
+18
-27
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/dnode/src/dnodeVRead.c
src/dnode/src/dnodeVRead.c
+4
-3
src/dnode/src/dnodeVnodes.c
src/dnode/src/dnodeVnodes.c
+0
-1
src/plugins/monitor/src/monMain.c
src/plugins/monitor/src/monMain.c
+1
-1
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+2
-0
src/rpc/src/rpcTcp.c
src/rpc/src/rpcTcp.c
+2
-3
src/rpc/test/rclient.c
src/rpc/test/rclient.c
+0
-2
src/rpc/test/rsclient.c
src/rpc/test/rsclient.c
+1
-3
src/sync/src/syncRetrieve.c
src/sync/src/syncRetrieve.c
+0
-1
src/sync/test/syncClient.c
src/sync/test/syncClient.c
+0
-2
src/sync/test/syncServer.c
src/sync/test/syncServer.c
+1
-1
src/util/src/tlog.c
src/util/src/tlog.c
+1
-6
src/util/src/tsched.c
src/util/src/tsched.c
+3
-1
src/wal/src/walMgmt.c
src/wal/src/walMgmt.c
+1
-1
未找到文件。
src/balance/src/bnThread.c
浏览文件 @
7409fda3
...
...
@@ -23,7 +23,7 @@
static
SBnThread
tsBnThread
;
static
void
*
bnThreadFunc
(
void
*
arg
)
{
setThreadName
(
"b
nThreadd
"
);
setThreadName
(
"b
alance
"
);
while
(
1
)
{
pthread_mutex_lock
(
&
tsBnThread
.
mutex
);
...
...
src/dnode/src/dnodeTelemetry.c
浏览文件 @
7409fda3
...
...
@@ -245,7 +245,7 @@ static void* telemetryThread(void* param) {
clock_gettime
(
CLOCK_REALTIME
,
&
end
);
end
.
tv_sec
+=
300
;
// wait 5 minutes before send first report
setThreadName
(
"telemetry
Thrd
"
);
setThreadName
(
"telemetry"
);
while
(
!
tsExit
)
{
int
r
=
0
;
...
...
src/dnode/src/dnodeVRead.c
浏览文件 @
7409fda3
...
...
@@ -118,10 +118,11 @@ static void *dnodeProcessReadQueue(void *wparam) {
SVReadMsg
*
pRead
;
int32_t
qtype
;
void
*
pVnode
;
char
name
[
16
];
memset
(
name
,
0
,
16
);
snprintf
(
name
,
16
,
"%s-dnReadQ"
,
pPool
->
name
);
char
*
threadname
=
strcmp
(
pPool
->
name
,
"vquery"
)
==
0
?
"dnodeQueryQ"
:
"dnodeFetchQ"
;
char
name
[
16
]
=
{
0
};
snprintf
(
name
,
tListLen
(
name
),
"%s"
,
threadname
);
setThreadName
(
name
);
while
(
1
)
{
...
...
src/dnode/src/dnodeVnodes.c
浏览文件 @
7409fda3
...
...
@@ -90,7 +90,6 @@ static void *dnodeOpenVnode(void *param) {
char
stepDesc
[
TSDB_STEP_DESC_LEN
]
=
{
0
};
dDebug
(
"thread:%d, start to open %d vnodes"
,
pThread
->
threadIndex
,
pThread
->
vnodeNum
);
setThreadName
(
"dnodeOpenVnode"
);
for
(
int32_t
v
=
0
;
v
<
pThread
->
vnodeNum
;
++
v
)
{
...
...
src/plugins/monitor/src/monMain.c
浏览文件 @
7409fda3
...
...
@@ -114,7 +114,7 @@ int32_t monStartSystem() {
static
void
*
monThreadFunc
(
void
*
param
)
{
monDebug
(
"starting to initialize monitor module ..."
);
setThreadName
(
"mon
Thrd
"
);
setThreadName
(
"mon
itor
"
);
while
(
1
)
{
static
int32_t
accessTimes
=
0
;
...
...
src/query/src/qExecutor.c
浏览文件 @
7409fda3
...
...
@@ -6554,9 +6554,11 @@ static SSDataBlock* hashDistinct(void* param, bool* newgroup) {
return
NULL
;
}
SDistinctOperatorInfo
*
pInfo
=
pOperator
->
info
;
SSDataBlock
*
pRes
=
pInfo
->
pRes
;
pRes
->
info
.
rows
=
0
;
SSDataBlock
*
pBlock
=
NULL
;
while
(
1
)
{
...
...
src/rpc/src/rpcTcp.c
浏览文件 @
7409fda3
...
...
@@ -529,10 +529,9 @@ static void *taosProcessTcpData(void *param) {
SFdObj
*
pFdObj
;
struct
epoll_event
events
[
maxEvents
];
SRecvInfo
recvInfo
;
char
name
[
16
];
memset
(
name
,
0
,
sizeof
(
name
))
;
snprintf
(
name
,
16
,
"%s-tcpData
"
,
pThreadObj
->
label
);
char
name
[
16
]
=
{
0
}
;
snprintf
(
name
,
tListLen
(
name
),
"%s-tcp
"
,
pThreadObj
->
label
);
setThreadName
(
name
);
while
(
1
)
{
...
...
src/rpc/test/rclient.c
浏览文件 @
7409fda3
...
...
@@ -48,8 +48,6 @@ static void *sendRequest(void *param) {
SInfo
*
pInfo
=
(
SInfo
*
)
param
;
SRpcMsg
rpcMsg
=
{
0
};
setThreadName
(
"sendCliReq"
);
tDebug
(
"thread:%d, start to send request"
,
pInfo
->
index
);
while
(
pInfo
->
numOfReqs
==
0
||
pInfo
->
num
<
pInfo
->
numOfReqs
)
{
...
...
src/rpc/test/rsclient.c
浏览文件 @
7409fda3
...
...
@@ -40,9 +40,7 @@ static int terror = 0;
static
void
*
sendRequest
(
void
*
param
)
{
SInfo
*
pInfo
=
(
SInfo
*
)
param
;
SRpcMsg
rpcMsg
,
rspMsg
;
setThreadName
(
"sendSrvReq"
);
tDebug
(
"thread:%d, start to send request"
,
pInfo
->
index
);
while
(
pInfo
->
numOfReqs
==
0
||
pInfo
->
num
<
pInfo
->
numOfReqs
)
{
...
...
src/sync/src/syncRetrieve.c
浏览文件 @
7409fda3
...
...
@@ -415,7 +415,6 @@ static int32_t syncRetrieveDataStepByStep(SSyncPeer *pPeer) {
}
void
*
syncRetrieveData
(
void
*
param
)
{
setThreadName
(
"syncRetrievData"
);
int64_t
rid
=
(
int64_t
)
param
;
SSyncPeer
*
pPeer
=
syncAcquirePeer
(
rid
);
if
(
pPeer
==
NULL
)
{
...
...
src/sync/test/syncClient.c
浏览文件 @
7409fda3
...
...
@@ -48,8 +48,6 @@ void *sendRequest(void *param) {
SInfo
*
pInfo
=
(
SInfo
*
)
param
;
SRpcMsg
rpcMsg
=
{
0
};
setThreadName
(
"sendCliReq"
);
uDebug
(
"thread:%d, start to send request"
,
pInfo
->
index
);
while
(
pInfo
->
numOfReqs
==
0
||
pInfo
->
num
<
pInfo
->
numOfReqs
)
{
...
...
src/sync/test/syncServer.c
浏览文件 @
7409fda3
...
...
@@ -178,7 +178,7 @@ void *processWriteQueue(void *param) {
int
type
;
void
*
item
;
setThreadName
(
"
writeQ
"
);
setThreadName
(
"
syncWrite
"
);
while
(
1
)
{
int
ret
=
taosReadQitem
(
qhandle
,
&
type
,
&
item
);
...
...
src/util/src/tlog.c
浏览文件 @
7409fda3
...
...
@@ -178,8 +178,6 @@ static void *taosThreadToOpenNewFile(void *param) {
char
keepName
[
LOG_FILE_NAME_LEN
+
20
];
sprintf
(
keepName
,
"%s.%d"
,
tsLogObj
.
logName
,
tsLogObj
.
flag
);
setThreadName
(
"openNewFile"
);
tsLogObj
.
flag
^=
1
;
tsLogObj
.
lines
=
0
;
char
name
[
LOG_FILE_NAME_LEN
+
20
];
...
...
@@ -689,12 +687,9 @@ static void taosWriteLog(SLogBuff *tLogBuff) {
static
void
*
taosAsyncOutputLog
(
void
*
param
)
{
SLogBuff
*
tLogBuff
=
(
SLogBuff
*
)
param
;
setThreadName
(
"asyncOutputLog"
);
setThreadName
(
"log"
);
while
(
1
)
{
//tsem_wait(&(tLogBuff->buffNotEmpty));
taosMsleep
(
writeInterval
);
// Polling the buffer
...
...
src/util/src/tsched.c
浏览文件 @
7409fda3
...
...
@@ -122,7 +122,9 @@ void *taosProcessSchedQueue(void *scheduler) {
SSchedQueue
*
pSched
=
(
SSchedQueue
*
)
scheduler
;
int
ret
=
0
;
setThreadName
(
"schedQ"
);
char
name
[
16
]
=
{
0
};
snprintf
(
name
,
tListLen
(
name
),
"%s-taskQ"
,
pSched
->
label
);
setThreadName
(
name
);
while
(
1
)
{
if
((
ret
=
tsem_wait
(
&
pSched
->
fullSem
))
!=
0
)
{
...
...
src/wal/src/walMgmt.c
浏览文件 @
7409fda3
...
...
@@ -192,7 +192,7 @@ static void walFsyncAll() {
static
void
*
walThreadFunc
(
void
*
param
)
{
int
stop
=
0
;
setThreadName
(
"wal
Thrd
"
);
setThreadName
(
"wal"
);
while
(
1
)
{
walUpdateSeq
();
walFsyncAll
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录