Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
66805aaf
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1185
Star
22015
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看板
提交
66805aaf
编写于
7月 04, 2020
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[td-225] refactor
上级
dfb07ae0
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
7 addition
and
7 deletion
+7
-7
src/client/src/tscLocal.c
src/client/src/tscLocal.c
+1
-1
src/client/src/tscServer.c
src/client/src/tscServer.c
+2
-2
src/mnode/src/mnodeProfile.c
src/mnode/src/mnodeProfile.c
+1
-1
src/mnode/src/mnodeShow.c
src/mnode/src/mnodeShow.c
+1
-1
src/plugins/http/src/httpContext.c
src/plugins/http/src/httpContext.c
+1
-1
src/plugins/http/src/httpSession.c
src/plugins/http/src/httpSession.c
+1
-1
未找到文件。
src/client/src/tscLocal.c
浏览文件 @
66805aaf
...
@@ -406,7 +406,7 @@ int tscProcessLocalCmd(SSqlObj *pSql) {
...
@@ -406,7 +406,7 @@ int tscProcessLocalCmd(SSqlObj *pSql) {
pSql
->
res
.
qhandle
=
0x1
;
pSql
->
res
.
qhandle
=
0x1
;
pSql
->
res
.
numOfRows
=
0
;
pSql
->
res
.
numOfRows
=
0
;
}
else
if
(
pCmd
->
command
==
TSDB_SQL_RESET_CACHE
)
{
}
else
if
(
pCmd
->
command
==
TSDB_SQL_RESET_CACHE
)
{
taosCacheEmpty
(
tscCacheHandle
);
taosCacheEmpty
(
tscCacheHandle
,
false
);
}
else
if
(
pCmd
->
command
==
TSDB_SQL_SERV_VERSION
)
{
}
else
if
(
pCmd
->
command
==
TSDB_SQL_SERV_VERSION
)
{
tscProcessServerVer
(
pSql
);
tscProcessServerVer
(
pSql
);
}
else
if
(
pCmd
->
command
==
TSDB_SQL_CLI_VERSION
)
{
}
else
if
(
pCmd
->
command
==
TSDB_SQL_CLI_VERSION
)
{
...
...
src/client/src/tscServer.c
浏览文件 @
66805aaf
...
@@ -1943,7 +1943,7 @@ int tscProcessUseDbRsp(SSqlObj *pSql) {
...
@@ -1943,7 +1943,7 @@ int tscProcessUseDbRsp(SSqlObj *pSql) {
}
}
int
tscProcessDropDbRsp
(
SSqlObj
*
UNUSED_PARAM
(
pSql
))
{
int
tscProcessDropDbRsp
(
SSqlObj
*
UNUSED_PARAM
(
pSql
))
{
taosCacheEmpty
(
tscCacheHandle
);
taosCacheEmpty
(
tscCacheHandle
,
false
);
return
0
;
return
0
;
}
}
...
@@ -1989,7 +1989,7 @@ int tscProcessAlterTableMsgRsp(SSqlObj *pSql) {
...
@@ -1989,7 +1989,7 @@ int tscProcessAlterTableMsgRsp(SSqlObj *pSql) {
if
(
isSuperTable
)
{
// if it is a super table, reset whole query cache
if
(
isSuperTable
)
{
// if it is a super table, reset whole query cache
tscDebug
(
"%p reset query cache since table:%s is stable"
,
pSql
,
pTableMetaInfo
->
name
);
tscDebug
(
"%p reset query cache since table:%s is stable"
,
pSql
,
pTableMetaInfo
->
name
);
taosCacheEmpty
(
tscCacheHandle
);
taosCacheEmpty
(
tscCacheHandle
,
false
);
}
}
}
}
...
...
src/mnode/src/mnodeProfile.c
浏览文件 @
66805aaf
...
@@ -68,7 +68,7 @@ int32_t mnodeInitProfile() {
...
@@ -68,7 +68,7 @@ int32_t mnodeInitProfile() {
mnodeAddWriteMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_STREAM
,
mnodeProcessKillStreamMsg
);
mnodeAddWriteMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_STREAM
,
mnodeProcessKillStreamMsg
);
mnodeAddWriteMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_CONN
,
mnodeProcessKillConnectionMsg
);
mnodeAddWriteMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_CONN
,
mnodeProcessKillConnectionMsg
);
tsMnodeConnCache
=
taosCacheInit
WithCb
(
TSDB_DATA_TYPE_INT
,
CONN_CHECK_TIME
,
false
,
mnodeFreeConn
,
"conn"
);
tsMnodeConnCache
=
taosCacheInit
(
TSDB_DATA_TYPE_INT
,
CONN_CHECK_TIME
,
false
,
mnodeFreeConn
,
"conn"
);
return
0
;
return
0
;
}
}
...
...
src/mnode/src/mnodeShow.c
浏览文件 @
66805aaf
...
@@ -65,7 +65,7 @@ int32_t mnodeInitShow() {
...
@@ -65,7 +65,7 @@ int32_t mnodeInitShow() {
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_CONNECT
,
mnodeProcessConnectMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_CONNECT
,
mnodeProcessConnectMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_USE_DB
,
mnodeProcessUseMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_USE_DB
,
mnodeProcessUseMsg
);
tsMnodeShowCache
=
taosCacheInit
WithCb
(
TSDB_DATA_TYPE_INT
,
5
,
false
,
mnodeFreeShowObj
,
"show"
);
tsMnodeShowCache
=
taosCacheInit
(
TSDB_DATA_TYPE_INT
,
5
,
false
,
mnodeFreeShowObj
,
"show"
);
return
0
;
return
0
;
}
}
...
...
src/plugins/http/src/httpContext.c
浏览文件 @
66805aaf
...
@@ -58,7 +58,7 @@ static void httpDestroyContext(void *data) {
...
@@ -58,7 +58,7 @@ static void httpDestroyContext(void *data) {
}
}
bool
httpInitContexts
()
{
bool
httpInitContexts
()
{
tsHttpServer
.
contextCache
=
taosCacheInit
WithCb
(
TSDB_DATA_TYPE_BIGINT
,
2
,
false
,
httpDestroyContext
,
"restc"
);
tsHttpServer
.
contextCache
=
taosCacheInit
(
TSDB_DATA_TYPE_BIGINT
,
2
,
false
,
httpDestroyContext
,
"restc"
);
if
(
tsHttpServer
.
contextCache
==
NULL
)
{
if
(
tsHttpServer
.
contextCache
==
NULL
)
{
httpError
(
"failed to init context cache"
);
httpError
(
"failed to init context cache"
);
return
false
;
return
false
;
...
...
src/plugins/http/src/httpSession.c
浏览文件 @
66805aaf
...
@@ -115,7 +115,7 @@ void httpCleanUpSessions() {
...
@@ -115,7 +115,7 @@ void httpCleanUpSessions() {
}
}
bool
httpInitSessions
()
{
bool
httpInitSessions
()
{
tsHttpServer
.
sessionCache
=
taosCacheInit
WithCb
(
TSDB_DATA_TYPE_BINARY
,
5
,
false
,
httpDestroySession
,
"rests"
);
tsHttpServer
.
sessionCache
=
taosCacheInit
(
TSDB_DATA_TYPE_BINARY
,
5
,
false
,
httpDestroySession
,
"rests"
);
if
(
tsHttpServer
.
sessionCache
==
NULL
)
{
if
(
tsHttpServer
.
sessionCache
==
NULL
)
{
httpError
(
"failed to init session cache"
);
httpError
(
"failed to init session cache"
);
return
false
;
return
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录