Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
66e689c6
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
66e689c6
编写于
5月 14, 2021
作者:
H
haojun Liao
提交者:
GitHub
5月 14, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #6121 from taosdata/hotfix/TD-4020
[TD-4020]duplicated queries in show result
上级
770bfd7b
57aceae5
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
11 addition
and
12 deletion
+11
-12
src/client/src/tscProfile.c
src/client/src/tscProfile.c
+2
-2
src/client/src/tscUtil.c
src/client/src/tscUtil.c
+4
-4
src/mnode/src/mnodeProfile.c
src/mnode/src/mnodeProfile.c
+3
-2
src/mnode/src/mnodeShow.c
src/mnode/src/mnodeShow.c
+0
-4
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+2
-0
未找到文件。
src/client/src/tscProfile.c
浏览文件 @
66e689c6
...
...
@@ -54,14 +54,14 @@ void tscAddIntoSqlList(SSqlObj *pSql) {
pSql
->
next
=
pObj
->
sqlList
;
if
(
pObj
->
sqlList
)
pObj
->
sqlList
->
prev
=
pSql
;
pObj
->
sqlList
=
pSql
;
pSql
->
queryId
=
queryId
++
;
pSql
->
queryId
=
atomic_fetch_add_32
(
&
queryId
,
1
)
;
pthread_mutex_unlock
(
&
pObj
->
mutex
);
pSql
->
stime
=
taosGetTimestampMs
();
pSql
->
listed
=
1
;
tscDebug
(
"0x%"
PRIx64
" added into sqlList
"
,
pSql
->
self
);
tscDebug
(
"0x%"
PRIx64
" added into sqlList
, queryId:%u"
,
pSql
->
self
,
pSql
->
queryId
);
}
void
tscSaveSlowQueryFpCb
(
void
*
param
,
TAOS_RES
*
result
,
int
code
)
{
...
...
src/client/src/tscUtil.c
浏览文件 @
66e689c6
...
...
@@ -2431,16 +2431,16 @@ void tscDoQuery(SSqlObj* pSql) {
return
;
}
if
(
pCmd
->
command
==
TSDB_SQL_SELECT
)
{
tscAddIntoSqlList
(
pSql
);
}
if
(
pCmd
->
dataSourceType
==
DATA_FROM_DATA_FILE
)
{
tscImportDataFromFile
(
pSql
);
}
else
{
SQueryInfo
*
pQueryInfo
=
tscGetQueryInfoDetail
(
pCmd
,
pCmd
->
clauseIndex
);
uint16_t
type
=
pQueryInfo
->
type
;
if
((
pCmd
->
command
==
TSDB_SQL_SELECT
)
&&
(
!
TSDB_QUERY_HAS_TYPE
(
type
,
TSDB_QUERY_TYPE_SUBQUERY
))
&&
(
!
TSDB_QUERY_HAS_TYPE
(
type
,
TSDB_QUERY_TYPE_STABLE_SUBQUERY
)))
{
tscAddIntoSqlList
(
pSql
);
}
if
(
TSDB_QUERY_HAS_TYPE
(
type
,
TSDB_QUERY_TYPE_INSERT
))
{
// multi-vnodes insertion
tscHandleMultivnodeInsert
(
pSql
);
return
;
...
...
src/mnode/src/mnodeProfile.c
浏览文件 @
66e689c6
...
...
@@ -123,8 +123,9 @@ SConnObj *mnodeAccquireConn(int32_t connId, char *user, uint32_t ip, uint16_t po
if
(
/* pConn->ip != ip || */
pConn
->
port
!=
port
/* || strcmp(pConn->user, user) != 0 */
)
{
mDebug
(
"connId:%d, incoming conn user:%s ip:%s:%u, not match exist conn user:%s ip:%s:%u"
,
connId
,
user
,
taosIpStr
(
ip
),
port
,
pConn
->
user
,
taosIpStr
(
pConn
->
ip
),
pConn
->
port
);
taosCacheRelease
(
tsMnodeConnCache
,
(
void
**
)
&
pConn
,
false
);
return
NULL
;
pConn
->
port
=
port
;
//taosCacheRelease(tsMnodeConnCache, (void **)&pConn, false);
//return NULL;
}
// mDebug("connId:%d, is incoming, user:%s ip:%s:%u", connId, pConn->user, taosIpStr(pConn->ip), pConn->port);
...
...
src/mnode/src/mnodeShow.c
浏览文件 @
66e689c6
...
...
@@ -253,10 +253,6 @@ static int32_t mnodeProcessHeartBeatMsg(SMnodeMsg *pMsg) {
int32_t
connId
=
htonl
(
pHBMsg
->
connId
);
SConnObj
*
pConn
=
mnodeAccquireConn
(
connId
,
connInfo
.
user
,
connInfo
.
clientIp
,
connInfo
.
clientPort
);
if
(
pConn
==
NULL
)
{
pHBMsg
->
pid
=
htonl
(
pHBMsg
->
pid
);
pConn
=
mnodeCreateConn
(
connInfo
.
user
,
connInfo
.
clientIp
,
connInfo
.
clientPort
,
pHBMsg
->
pid
,
pHBMsg
->
appName
);
}
if
(
pConn
==
NULL
)
{
// do not close existing links, otherwise
...
...
src/query/src/qExecutor.c
浏览文件 @
66e689c6
...
...
@@ -124,6 +124,8 @@ int64_t genQueryId(void) {
uid
|=
sid
;
qDebug
(
"gen qid:0x%"
PRIx64
,
uid
);
return
uid
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录