Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f0f47483
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
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看板
提交
f0f47483
编写于
8月 05, 2022
作者:
L
Liu Jicong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(util): concurrently hash iterate
上级
7f926dd7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
11 addition
and
15 deletion
+11
-15
include/libs/stream/tstream.h
include/libs/stream/tstream.h
+0
-10
source/common/src/tglobal.c
source/common/src/tglobal.c
+1
-1
source/libs/wal/inc/walInt.h
source/libs/wal/inc/walInt.h
+2
-2
source/libs/wal/src/walSeek.c
source/libs/wal/src/walSeek.c
+1
-1
source/libs/wal/src/walWrite.c
source/libs/wal/src/walWrite.c
+3
-0
source/util/src/thash.c
source/util/src/thash.c
+4
-1
未找到文件。
include/libs/stream/tstream.h
浏览文件 @
f0f47483
...
...
@@ -202,11 +202,6 @@ typedef struct {
int8_t
reserved
;
}
STaskSinkFetch
;
enum
{
TASK_SOURCE__SCAN
=
1
,
TASK_SOURCE__PIPE
,
};
enum
{
TASK_EXEC__NONE
=
1
,
TASK_EXEC__PIPE
,
...
...
@@ -225,11 +220,6 @@ enum {
TASK_SINK__FETCH
,
};
enum
{
TASK_INPUT_TYPE__SUMBIT_BLOCK
=
1
,
TASK_INPUT_TYPE__DATA_BLOCK
,
};
enum
{
TASK_TRIGGER_STATUS__IN_ACTIVE
=
1
,
TASK_TRIGGER_STATUS__ACTIVE
,
...
...
source/common/src/tglobal.c
浏览文件 @
f0f47483
...
...
@@ -389,7 +389,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) {
tsNumOfVnodeQueryThreads
=
TMAX
(
tsNumOfVnodeQueryThreads
,
4
);
if
(
cfgAddInt32
(
pCfg
,
"numOfVnodeQueryThreads"
,
tsNumOfVnodeQueryThreads
,
4
,
1024
,
0
)
!=
0
)
return
-
1
;
tsNumOfVnodeStreamThreads
=
tsNumOfCores
;
tsNumOfVnodeStreamThreads
=
tsNumOfCores
/
4
;
tsNumOfVnodeStreamThreads
=
TMAX
(
tsNumOfVnodeStreamThreads
,
4
);
if
(
cfgAddInt32
(
pCfg
,
"numOfVnodeStreamThreads"
,
tsNumOfVnodeStreamThreads
,
4
,
1024
,
0
)
!=
0
)
return
-
1
;
...
...
source/libs/wal/inc/walInt.h
浏览文件 @
f0f47483
...
...
@@ -151,8 +151,8 @@ int walMetaDeserialize(SWal* pWal, const char* bytes);
// meta section end
// seek section
int
walChangeWrite
(
SWal
*
pWal
,
int64_t
ver
);
int
walInitWriteFile
(
SWal
*
pWal
);
int
64_t
walChangeWrite
(
SWal
*
pWal
,
int64_t
ver
);
int
walInitWriteFile
(
SWal
*
pWal
);
// seek section end
int64_t
walGetSeq
();
...
...
source/libs/wal/src/walSeek.c
浏览文件 @
f0f47483
...
...
@@ -74,7 +74,7 @@ int walInitWriteFile(SWal* pWal) {
return
0
;
}
int
walChangeWrite
(
SWal
*
pWal
,
int64_t
ver
)
{
int
64_t
walChangeWrite
(
SWal
*
pWal
,
int64_t
ver
)
{
int
code
;
TdFilePtr
pIdxTFile
,
pLogTFile
;
char
fnameStr
[
WAL_FILE_LEN
];
...
...
source/libs/wal/src/walWrite.c
浏览文件 @
f0f47483
...
...
@@ -208,6 +208,9 @@ int32_t walRollback(SWal *pWal, int64_t ver) {
taosCloseFile
(
&
pIdxFile
);
taosCloseFile
(
&
pLogFile
);
taosFsyncFile
(
pWal
->
pLogFile
);
taosFsyncFile
(
pWal
->
pIdxFile
);
walSaveMeta
(
pWal
);
// unlock
...
...
source/util/src/thash.c
浏览文件 @
f0f47483
...
...
@@ -832,8 +832,9 @@ void *taosHashIterate(SHashObj *pHashObj, void *p) {
if
(
pNode
)
{
SHashEntry
*
pe
=
pHashObj
->
hashList
[
slot
];
uint16_t
prevRef
=
atomic_load_16
(
&
pNode
->
refCount
);
/*uint16_t prevRef = atomic_load_16(&pNode->refCount);*/
uint16_t
afterRef
=
atomic_add_fetch_16
(
&
pNode
->
refCount
,
1
);
#if 0
ASSERT(prevRef < afterRef);
// the reference count value is overflow, which will cause the delete node operation immediately.
...
...
@@ -845,6 +846,8 @@ void *taosHashIterate(SHashObj *pHashObj, void *p) {
} else {
data = GET_HASH_NODE_DATA(pNode);
}
#endif
data
=
GET_HASH_NODE_DATA
(
pNode
);
if
(
afterRef
>=
MAX_WARNING_REF_COUNT
)
{
uWarn
(
"hash entry ref count is abnormally high: %d"
,
afterRef
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录