Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
cbf5e481
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看板
提交
cbf5e481
编写于
9月 19, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' of
https://github.com/taosdata/TDengine
into feat/stream_compression
上级
e43a4df8
fc0418fc
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
6 deletion
+15
-6
source/client/src/clientHb.c
source/client/src/clientHb.c
+9
-3
source/common/src/tdatablock.c
source/common/src/tdatablock.c
+1
-0
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
+1
-0
source/libs/executor/src/executil.c
source/libs/executor/src/executil.c
+2
-1
source/libs/function/src/builtinsimpl.c
source/libs/function/src/builtinsimpl.c
+2
-2
未找到文件。
source/client/src/clientHb.c
浏览文件 @
cbf5e481
...
...
@@ -878,12 +878,18 @@ int hbMgrInit() {
clientHbMgr
.
appHbMgrs
=
taosArrayInit
(
0
,
sizeof
(
void
*
));
TdThreadMutexAttr
attr
=
{
0
};
taosThreadMutexAttrSetType
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE
);
int
ret
=
taosThreadMutexAttrInit
(
&
attr
);
assert
(
ret
==
0
);
taosThreadMutexInit
(
&
clientHbMgr
.
lock
,
&
attr
);
taosThreadMutexAttrDestroy
(
&
attr
);
ret
=
taosThreadMutexAttrSetType
(
&
attr
,
PTHREAD_MUTEX_RECURSIVE
);
assert
(
ret
==
0
);
ret
=
taosThreadMutexInit
(
&
clientHbMgr
.
lock
,
&
attr
);
assert
(
ret
==
0
);
ret
=
taosThreadMutexAttrDestroy
(
&
attr
);
assert
(
ret
==
0
);
// init handle funcs
hbMgrInitHandle
();
...
...
source/common/src/tdatablock.c
浏览文件 @
cbf5e481
...
...
@@ -1446,6 +1446,7 @@ size_t blockDataGetCapacityInRow(const SSDataBlock* pBlock, size_t pageSize) {
int32_t
payloadSize
=
pageSize
-
blockDataGetSerialMetaSize
(
numOfCols
);
int32_t
rowSize
=
pBlock
->
info
.
rowSize
;
int32_t
nRows
=
payloadSize
/
rowSize
;
ASSERT
(
nRows
>=
1
);
// the true value must be less than the value of nRows
int32_t
additional
=
0
;
...
...
source/dnode/vnode/src/tsdb/tsdbMergeTree.c
浏览文件 @
cbf5e481
...
...
@@ -320,6 +320,7 @@ void tLDataIterNextBlock(SLDataIter *pIter) {
pIter
->
pSttBlk
=
NULL
;
if
(
index
!=
-
1
)
{
pIter
->
iSttBlk
=
index
;
pIter
->
pSttBlk
=
(
SSttBlk
*
)
taosArrayGet
(
pIter
->
pBlockLoadInfo
->
aSttBlk
,
pIter
->
iSttBlk
);
}
}
...
...
source/libs/executor/src/executil.c
浏览文件 @
cbf5e481
...
...
@@ -989,7 +989,8 @@ SArray* extractColMatchInfo(SNodeList* pNodeList, SDataBlockDescNode* pOutputNod
if
(
pNode
->
output
)
{
(
*
numOfOutputCols
)
+=
1
;
}
else
{
}
else
if
(
info
!=
NULL
)
{
// select distinct tbname from stb where tbname='abc';
info
->
output
=
false
;
}
}
...
...
source/libs/function/src/builtinsimpl.c
浏览文件 @
cbf5e481
...
...
@@ -5297,12 +5297,12 @@ bool modeFunctionSetup(SqlFunctionCtx* pCtx, SResultRowEntryInfo* pResInfo) {
}
static
void
doModeAdd
(
SModeInfo
*
pInfo
,
char
*
data
)
{
int32_t
hashKeyBytes
=
IS_
VA
R_DATA_TYPE
(
pInfo
->
colType
)
?
varDataTLen
(
data
)
:
pInfo
->
colBytes
;
int32_t
hashKeyBytes
=
IS_
ST
R_DATA_TYPE
(
pInfo
->
colType
)
?
varDataTLen
(
data
)
:
pInfo
->
colBytes
;
SModeItem
**
pHashItem
=
taosHashGet
(
pInfo
->
pHash
,
data
,
hashKeyBytes
);
if
(
pHashItem
==
NULL
)
{
int32_t
size
=
sizeof
(
SModeItem
)
+
pInfo
->
colBytes
;
SModeItem
*
pItem
=
(
SModeItem
*
)(
pInfo
->
pItems
+
pInfo
->
numOfPoints
*
size
);
memcpy
(
pItem
->
data
,
data
,
pInfo
->
col
Bytes
);
memcpy
(
pItem
->
data
,
data
,
hashKey
Bytes
);
pItem
->
count
+=
1
;
taosHashPut
(
pInfo
->
pHash
,
data
,
hashKeyBytes
,
&
pItem
,
sizeof
(
SModeItem
*
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录