Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
524fff7e
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
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看板
未验证
提交
524fff7e
编写于
9月 29, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
9月 29, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #3724 from taosdata/hotfix/16_query_crash
[td-225]update the log and fix a query crash.
上级
9c8c56c9
401c31a6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
src/rpc/src/tudp.c
src/rpc/src/tudp.c
+4
-4
src/system/detail/src/vnodeQueryImpl.c
src/system/detail/src/vnodeQueryImpl.c
+2
-1
未找到文件。
src/rpc/src/tudp.c
100644 → 100755
浏览文件 @
524fff7e
...
...
@@ -124,9 +124,9 @@ void taosProcessMonitorTimer(void *param, void *tmrId) {
char
*
data
=
malloc
((
size_t
)
pMonitor
->
dataLen
);
memcpy
(
data
,
pMonitor
->
data
,
(
size_t
)
pMonitor
->
dataLen
);
tTrace
(
"%s monitor timer is expired, update the link status
"
,
pSet
->
label
);
tTrace
(
"%s monitor timer is expired, update the link status
, pConn:%p"
,
pSet
->
label
,
pMonitor
->
pConn
);
(
*
pSet
->
fp
)(
data
,
pMonitor
->
dataLen
,
pMonitor
->
ip
,
0
,
pSet
->
shandle
,
NULL
,
NULL
);
taosTmrReset
(
taosProcessMonitorTimer
,
2
00
,
pMonitor
,
pSet
->
tmrCtrl
,
&
pMonitor
->
pTimer
);
taosTmrReset
(
taosProcessMonitorTimer
,
1
00
,
pMonitor
,
pSet
->
tmrCtrl
,
&
pMonitor
->
pTimer
);
}
else
{
taosTmrStopA
(
&
pMonitor
->
pTimer
);
free
(
pMonitor
);
...
...
@@ -196,8 +196,8 @@ int taosReceivePacketViaTcp(uint32_t ip, STaosHeader *pHead, SUdpConn *pConn) {
pthread_attr_t
thattr
;
pthread_t
thread
;
tTrace
(
"%s receive packet via TCP, handle:0x%x, source:0x%08x dest:0x%08x tranId:%d"
,
pSet
->
label
,
pInfo
->
handle
,
pHead
->
sourceId
,
pHead
->
destId
,
pHead
->
tranId
);
tTrace
(
"%s receive packet via TCP, handle:0x%x, source:0x%08x dest:0x%08x tranId:%d
, pConn:%p
"
,
pSet
->
label
,
pInfo
->
handle
,
pHead
->
sourceId
,
pHead
->
destId
,
pHead
->
tranId
,
pConn
);
SMonitor
*
pMonitor
=
(
SMonitor
*
)
calloc
(
1
,
sizeof
(
SMonitor
));
pMonitor
->
dataLen
=
sizeof
(
STaosHeader
)
+
sizeof
(
SPacketInfo
);
...
...
src/system/detail/src/vnodeQueryImpl.c
浏览文件 @
524fff7e
...
...
@@ -7142,6 +7142,7 @@ int32_t getDataBlocksForMeters(STableQuerySupportObj *pSupporter, SQuery *pQuery
// sequentially scan this header file to extract the compHeader info
for
(
int32_t
j
=
0
;
j
<
numOfMeters
;
++
j
)
{
SMeterObj
*
pMeterObj
=
pMeterDataInfo
[
j
]
->
pMeterObj
;
pMeterDataInfo
[
j
]
->
numOfBlocks
=
0
;
lseek
(
pVnodeFileInfo
->
headerFd
,
pMeterDataInfo
[
j
]
->
offsetInHeaderFile
,
SEEK_SET
);
...
...
@@ -7345,7 +7346,7 @@ int32_t createDataBlocksInfoEx(SMeterDataInfo **pMeterDataInfo, int32_t numOfMet
dTrace
(
"QInfo %p create data blocks info struct completed"
,
addr
);
assert
(
cnt
=
=
numOfCompBlocks
&&
numOfQualMeters
<=
numOfMeters
);
// the pMeterDataInfo[j]->numOfBlocks may be 0
assert
(
cnt
<
=
numOfCompBlocks
&&
numOfQualMeters
<=
numOfMeters
);
// the pMeterDataInfo[j]->numOfBlocks may be 0
supporter
.
numOfMeters
=
numOfQualMeters
;
SLoserTreeInfo
*
pTree
=
NULL
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录