Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
320ad8d1
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看板
未验证
提交
320ad8d1
编写于
2月 25, 2023
作者:
X
Xiaoyu Wang
提交者:
GitHub
2月 25, 2023
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #20150 from taosdata/fix/TD-22710
fix: compact wrong data count
上级
5856a398
2a8f7e12
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
11 deletion
+14
-11
include/util/tlog.h
include/util/tlog.h
+8
-8
source/dnode/vnode/src/tsdb/tsdbMemTable.c
source/dnode/vnode/src/tsdb/tsdbMemTable.c
+3
-3
source/dnode/vnode/src/tsdb/tsdbUtil.c
source/dnode/vnode/src/tsdb/tsdbUtil.c
+1
-0
source/dnode/vnode/src/vnd/vnodeSvr.c
source/dnode/vnode/src/vnd/vnodeSvr.c
+2
-0
未找到文件。
include/util/tlog.h
浏览文件 @
320ad8d1
...
@@ -89,20 +89,20 @@ bool taosAssertRelease(bool condition);
...
@@ -89,20 +89,20 @@ bool taosAssertRelease(bool condition);
// Disable all asserts that may compromise the performance.
// Disable all asserts that may compromise the performance.
#if defined DISABLE_ASSERT
#if defined DISABLE_ASSERT
#define ASSERT(condition)
#define ASSERT(condition)
#define ASSERTS(condition, ...)
(0)
#define ASSERTS(condition, ...) (0)
#else
#else
#define ASSERTS(condition, ...)
taosAssertDebug(condition, __FILE__, __LINE__, __VA_ARGS__
)
#define ASSERTS(condition, ...)
((condition) ? false : taosAssertDebug(condition, __FILE__, __LINE__, __VA_ARGS__)
)
#ifdef NDEBUG
#ifdef NDEBUG
#define ASSERT(condition) taosAssertRelease(condition)
#define ASSERT(condition) taosAssertRelease(condition)
#else
#else
#define ASSERT(condition)
taosAssertDebug(condition, __FILE__, __LINE__
, "assert info not provided")
#define ASSERT(condition)
ASSERTS(condition
, "assert info not provided")
#endif
#endif
#endif
#endif
void
taosLogCrashInfo
(
char
*
nodeType
,
char
*
pMsg
,
int64_t
msgLen
,
int
signum
,
void
*
sigInfo
);
void
taosLogCrashInfo
(
char
*
nodeType
,
char
*
pMsg
,
int64_t
msgLen
,
int
signum
,
void
*
sigInfo
);
void
taosReadCrashInfo
(
char
*
filepath
,
char
**
pMsg
,
int64_t
*
pMsgLen
,
TdFilePtr
*
pFd
);
void
taosReadCrashInfo
(
char
*
filepath
,
char
**
pMsg
,
int64_t
*
pMsgLen
,
TdFilePtr
*
pFd
);
void
taosReleaseCrashLogFile
(
TdFilePtr
pFile
,
bool
truncateFile
);
void
taosReleaseCrashLogFile
(
TdFilePtr
pFile
,
bool
truncateFile
);
int32_t
taosGenCrashJsonMsg
(
int
signum
,
char
**
pMsg
,
int64_t
clusterId
,
int64_t
startTime
);
int32_t
taosGenCrashJsonMsg
(
int
signum
,
char
**
pMsg
,
int64_t
clusterId
,
int64_t
startTime
);
// clang-format off
// clang-format off
#define uFatal(...) { if (uDebugFlag & DEBUG_FATAL) { taosPrintLog("UTL FATAL", DEBUG_FATAL, tsLogEmbedded ? 255 : uDebugFlag, __VA_ARGS__); }}
#define uFatal(...) { if (uDebugFlag & DEBUG_FATAL) { taosPrintLog("UTL FATAL", DEBUG_FATAL, tsLogEmbedded ? 255 : uDebugFlag, __VA_ARGS__); }}
...
@@ -116,7 +116,7 @@ int32_t taosGenCrashJsonMsg(int signum, char** pMsg, int64_t clusterId, int64_t
...
@@ -116,7 +116,7 @@ int32_t taosGenCrashJsonMsg(int signum, char** pMsg, int64_t clusterId, int64_t
#define pError(...) { taosPrintLog("APP ERROR ", DEBUG_ERROR, 255, __VA_ARGS__); }
#define pError(...) { taosPrintLog("APP ERROR ", DEBUG_ERROR, 255, __VA_ARGS__); }
#define pPrint(...) { taosPrintLog("APP ", DEBUG_INFO, 255, __VA_ARGS__); }
#define pPrint(...) { taosPrintLog("APP ", DEBUG_INFO, 255, __VA_ARGS__); }
// clang-format on
// clang-format on
//#define BUF_PAGE_DEBUG
//
#define BUF_PAGE_DEBUG
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
...
...
source/dnode/vnode/src/tsdb/tsdbMemTable.c
浏览文件 @
320ad8d1
...
@@ -190,9 +190,9 @@ int32_t tsdbDeleteTableData(STsdb *pTsdb, int64_t version, tb_uid_t suid, tb_uid
...
@@ -190,9 +190,9 @@ int32_t tsdbDeleteTableData(STsdb *pTsdb, int64_t version, tb_uid_t suid, tb_uid
tsdbCacheDeleteLast
(
pTsdb
->
lruCache
,
pTbData
->
uid
,
eKey
);
tsdbCacheDeleteLast
(
pTsdb
->
lruCache
,
pTbData
->
uid
,
eKey
);
}
}
tsdb
Info
(
"vgId:%d, delete data from table suid:%"
PRId64
" uid:%"
PRId64
" skey:%"
PRId64
" eKey:%"
PRId64
tsdb
Trace
(
"vgId:%d, delete data from table suid:%"
PRId64
" uid:%"
PRId64
" skey:%"
PRId64
" eKey:%"
PRId64
" at version %"
PRId64
" since %s"
,
" at version %"
PRId64
,
TD_VID
(
pTsdb
->
pVnode
),
suid
,
uid
,
sKey
,
eKey
,
version
,
tstrerror
(
code
)
);
TD_VID
(
pTsdb
->
pVnode
),
suid
,
uid
,
sKey
,
eKey
,
version
);
return
code
;
return
code
;
_err:
_err:
...
...
source/dnode/vnode/src/tsdb/tsdbUtil.c
浏览文件 @
320ad8d1
...
@@ -1096,6 +1096,7 @@ int32_t tsdbBuildDeleteSkyline(SArray *aDelData, int32_t sidx, int32_t eidx, SAr
...
@@ -1096,6 +1096,7 @@ int32_t tsdbBuildDeleteSkyline(SArray *aDelData, int32_t sidx, int32_t eidx, SAr
SArray
*
aTmpSkyline
=
taosArrayInit
(
dataNum
*
2
,
sizeof
(
TSDBKEY
));
SArray
*
aTmpSkyline
=
taosArrayInit
(
dataNum
*
2
,
sizeof
(
TSDBKEY
));
SArray
*
pSkyline
=
taosArrayInit
(
dataNum
*
2
,
POINTER_BYTES
);
SArray
*
pSkyline
=
taosArrayInit
(
dataNum
*
2
,
POINTER_BYTES
);
taosArrayClear
(
aSkyline
);
for
(
int32_t
i
=
sidx
;
i
<=
eidx
;
++
i
)
{
for
(
int32_t
i
=
sidx
;
i
<=
eidx
;
++
i
)
{
pDelData
=
(
SDelData
*
)
taosArrayGet
(
aDelData
,
i
);
pDelData
=
(
SDelData
*
)
taosArrayGet
(
aDelData
,
i
);
taosArrayPush
(
aTmpSkyline
,
&
(
TSDBKEY
){.
ts
=
pDelData
->
sKey
,
.
version
=
pDelData
->
version
});
taosArrayPush
(
aTmpSkyline
,
&
(
TSDBKEY
){.
ts
=
pDelData
->
sKey
,
.
version
=
pDelData
->
version
});
...
...
source/dnode/vnode/src/vnd/vnodeSvr.c
浏览文件 @
320ad8d1
...
@@ -628,12 +628,14 @@ static int32_t vnodeProcessDropTtlTbReq(SVnode *pVnode, int64_t version, void *p
...
@@ -628,12 +628,14 @@ static int32_t vnodeProcessDropTtlTbReq(SVnode *pVnode, int64_t version, void *p
tqUpdateTbUidList
(
pVnode
->
pTq
,
tbUids
,
false
);
tqUpdateTbUidList
(
pVnode
->
pTq
,
tbUids
,
false
);
}
}
#if 0
// process
// process
ret = tsdbDoRetention(pVnode->pTsdb, ttlReq.timestamp);
ret = tsdbDoRetention(pVnode->pTsdb, ttlReq.timestamp);
if (ret) goto end;
if (ret) goto end;
ret = smaDoRetention(pVnode->pSma, ttlReq.timestamp);
ret = smaDoRetention(pVnode->pSma, ttlReq.timestamp);
if (ret) goto end;
if (ret) goto end;
#endif
end:
end:
taosArrayDestroy
(
tbUids
);
taosArrayDestroy
(
tbUids
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录