Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d9b73f35
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1193
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看板
提交
d9b73f35
编写于
12月 22, 2021
作者:
C
Cary Xu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
code optimization
上级
aa616815
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
6 addition
and
7 deletion
+6
-7
src/common/inc/tglobal.h
src/common/inc/tglobal.h
+2
-1
src/common/src/tglobal.c
src/common/src/tglobal.c
+0
-2
src/dnode/src/dnodeVWrite.c
src/dnode/src/dnodeVWrite.c
+1
-1
src/rpc/src/rpcMain.c
src/rpc/src/rpcMain.c
+2
-2
src/vnode/src/vnodeWrite.c
src/vnode/src/vnodeWrite.c
+1
-1
未找到文件。
src/common/inc/tglobal.h
浏览文件 @
d9b73f35
...
...
@@ -247,7 +247,8 @@ bool taosCheckBalanceCfgOptions(const char *option, int32_t *vnodeId, int32_t
void
taosAddDataDir
(
int
index
,
char
*
v1
,
int
level
,
int
primary
);
void
taosReadDataDirCfg
(
char
*
v1
,
char
*
v2
,
char
*
v3
);
void
taosPrintDataDirCfg
();
bool
taosPrintCreateTable
();
#define TAOS_PRINT_CREATE_TABLE (tsSpecificLogType & LOG_CREATE_TABLE)
#ifdef __cplusplus
}
...
...
src/common/src/tglobal.c
浏览文件 @
d9b73f35
...
...
@@ -1831,5 +1831,3 @@ bool taosCheckBalanceCfgOptions(const char *option, int32_t *vnodeId, int32_t *d
return
true
;
}
bool
taosPrintCreateTable
()
{
return
(
tsSpecificLogType
&
LOG_CREATE_TABLE
)
?
true
:
false
;
}
src/dnode/src/dnodeVWrite.c
浏览文件 @
d9b73f35
...
...
@@ -203,7 +203,7 @@ static void *dnodeProcessVWriteQueue(void *wparam) {
bool
forceFsync
=
false
;
for
(
int32_t
i
=
0
;
i
<
numOfMsgs
;
++
i
)
{
taosGetQitem
(
pWorker
->
qall
,
&
qtype
,
(
void
**
)
&
pWrite
);
if
((
pWrite
->
walHead
.
msgType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
taosPrintCreateTable
()
)
{
if
((
pWrite
->
walHead
.
msgType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
TAOS_PRINT_CREATE_TABLE
)
{
SMDCreateTableMsg
*
pMsg
=
(
SMDCreateTableMsg
*
)
pWrite
->
walHead
.
cont
;
dInfo
(
"msg:%p, app:%p type:%s for uid:%"
PRIu64
", tid:%"
PRIu32
" will be processed in vwrite queue, qtype:%s hver:%"
PRIu64
,
...
...
src/rpc/src/rpcMain.c
浏览文件 @
d9b73f35
...
...
@@ -1161,7 +1161,7 @@ static void rpcProcessIncomingMsg(SRpcConn *pConn, SRpcHead *pHead, SRpcReqConte
rpcAddRef
(
pRpc
);
// add the refCount for requests
// notify the server app
if
((
rpcMsg
.
msgType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
taosPrintCreateTable
()
)
{
if
((
rpcMsg
.
msgType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
TAOS_PRINT_CREATE_TABLE
)
{
SMDCreateTableMsg
*
pMsg
=
(
SMDCreateTableMsg
*
)
rpcMsg
.
pCont
;
tInfo
(
"%p, msg:%s received, uid:%"
PRIu64
", tid:%"
PRIu32
,
rpcMsg
.
ahandle
,
taosMsg
[
rpcMsg
.
msgType
],
htobe64
(
pMsg
->
uid
),
htonl
(
pMsg
->
tid
));
...
...
@@ -1353,7 +1353,7 @@ static void rpcSendMsgToPeer(SRpcConn *pConn, void *msg, int msgLen) {
}
//tTrace("connection type is: %d", pConn->connType);
if
((
pConn
->
outType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
taosPrintCreateTable
()
)
{
if
((
pConn
->
outType
==
TSDB_MSG_TYPE_MD_CREATE_TABLE
)
&&
TAOS_PRINT_CREATE_TABLE
)
{
tInfo
(
"%s, msg:%s is sent to 0x%x:%hu, code:0x%x len:%d sig:0x%08x:0x%08x:%d"
,
pConn
->
info
,
taosMsg
[
pHead
->
msgType
],
pConn
->
peerIp
,
pConn
->
peerPort
,
htonl
(
pHead
->
code
),
msgLen
,
pHead
->
sourceId
,
pHead
->
destId
,
pHead
->
tranId
);
}
...
...
src/vnode/src/vnodeWrite.c
浏览文件 @
d9b73f35
...
...
@@ -191,7 +191,7 @@ static int32_t vnodeProcessCreateTableMsg(SVnodeObj *pVnode, void *pCont, SRspRe
ASSERT
(
code
!=
0
);
}
if
(
taosPrintCreateTable
()
)
{
if
(
TAOS_PRINT_CREATE_TABLE
)
{
vInfo
(
"vgId:%d, table[%s], uid:%"
PRIu64
", tid:%"
PRIu32
" is created successfully"
,
pVnode
->
vgId
,
pMsg
->
tableFname
,
htobe64
(
pMsg
->
uid
),
htonl
(
pMsg
->
tid
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录