Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
edc118e8
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看板
提交
edc118e8
编写于
1月 24, 2022
作者:
dengyihao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename MAX/MIN/POW2/SWAP/ABS name
上级
92bef71e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
8 addition
and
8 deletion
+8
-8
2.0/src/client/src/tscSQLParser.c
2.0/src/client/src/tscSQLParser.c
+1
-1
include/common/tdataformat.h
include/common/tdataformat.h
+1
-1
include/libs/tfs/tfs.h
include/libs/tfs/tfs.h
+1
-1
include/os/osMath.h
include/os/osMath.h
+1
-1
source/dnode/mnode/impl/src/mndDnode.c
source/dnode/mnode/impl/src/mndDnode.c
+1
-1
source/libs/parser/src/astValidate.c
source/libs/parser/src/astValidate.c
+1
-1
source/os/src/osDir.c
source/os/src/osDir.c
+1
-1
source/util/src/tlog.c
source/util/src/tlog.c
+1
-1
未找到文件。
2.0/src/client/src/tscSQLParser.c
浏览文件 @
edc118e8
...
...
@@ -8089,7 +8089,7 @@ int32_t checkQueryRangeForFill(SSqlCmd* pCmd, SQueryInfo* pQueryInfo) {
return
invalidOperationMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg3
);
}
int64_t
timeRange
=
ABS
(
pQueryInfo
->
window
.
skey
-
pQueryInfo
->
window
.
ekey
);
int64_t
timeRange
=
T
ABS
(
pQueryInfo
->
window
.
skey
-
pQueryInfo
->
window
.
ekey
);
int64_t
intervalRange
=
0
;
if
(
pQueryInfo
->
interval
.
intervalUnit
==
'n'
||
pQueryInfo
->
interval
.
intervalUnit
==
'y'
)
{
...
...
include/common/tdataformat.h
浏览文件 @
edc118e8
...
...
@@ -136,7 +136,7 @@ typedef uint64_t TKEY;
#define TKEY_IS_NEGATIVE(tkey) (((tkey)&TKEY_NEGATIVE_FLAG) != 0)
#define TKEY_IS_DELETED(tkey) (((tkey)&TKEY_DELETE_FLAG) != 0)
#define tdSetTKEYDeleted(tkey) ((tkey) | TKEY_DELETE_FLAG)
#define tdGetTKEY(key) (((TKEY)ABS(key)) | (TKEY_NEGATIVE_FLAG & (TKEY)(key)))
#define tdGetTKEY(key) (((TKEY)
T
ABS(key)) | (TKEY_NEGATIVE_FLAG & (TKEY)(key)))
#define tdGetKey(tkey) (((TSKEY)((tkey)&TKEY_VALUE_FILTER)) * (TKEY_IS_NEGATIVE(tkey) ? -1 : 1))
#define MIN_TS_KEY ((TSKEY)0x8000000000000001)
...
...
include/libs/tfs/tfs.h
浏览文件 @
edc118e8
...
...
@@ -33,7 +33,7 @@ typedef struct {
typedef
struct
{
SDiskID
did
;
char
aname
[
TSDB_FILENAME_LEN
];
// ABS name
char
aname
[
TSDB_FILENAME_LEN
];
//
T
ABS name
char
rname
[
TSDB_FILENAME_LEN
];
// REL name
STfs
*
pTfs
;
}
STfsFile
;
...
...
include/os/osMath.h
浏览文件 @
edc118e8
...
...
@@ -21,7 +21,7 @@ extern "C" {
#endif
#define TPOW2(x) ((x) * (x))
#define ABS(x) ((x) > 0 ? (x) : -(x))
#define
T
ABS(x) ((x) > 0 ? (x) : -(x))
#if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32)
...
...
source/dnode/mnode/impl/src/mndDnode.c
浏览文件 @
edc118e8
...
...
@@ -234,7 +234,7 @@ int32_t mndGetDnodeSize(SMnode *pMnode) {
}
bool
mndIsDnodeOnline
(
SMnode
*
pMnode
,
SDnodeObj
*
pDnode
,
int64_t
curMs
)
{
int64_t
interval
=
ABS
(
pDnode
->
lastAccessTime
-
curMs
);
int64_t
interval
=
T
ABS
(
pDnode
->
lastAccessTime
-
curMs
);
if
(
interval
>
3500
*
pMnode
->
cfg
.
statusInterval
)
{
if
(
pDnode
->
rebootTime
>
0
)
{
pDnode
->
offlineReason
=
DND_REASON_STATUS_MSG_TIMEOUT
;
...
...
source/libs/parser/src/astValidate.c
浏览文件 @
edc118e8
...
...
@@ -1267,7 +1267,7 @@ static int32_t checkFillQueryRange(SQueryStmtInfo* pQueryInfo, SMsgBuf* pMsgBuf)
// return buildInvalidOperationMsg(pMsgBuf, msg1);
// }
int64_t
timeRange
=
ABS
(
pQueryInfo
->
window
.
skey
-
pQueryInfo
->
window
.
ekey
);
int64_t
timeRange
=
T
ABS
(
pQueryInfo
->
window
.
skey
-
pQueryInfo
->
window
.
ekey
);
int64_t
intervalRange
=
0
;
if
(
!
TIME_IS_VAR_DURATION
(
pQueryInfo
->
interval
.
intervalUnit
))
{
...
...
source/os/src/osDir.c
浏览文件 @
edc118e8
...
...
@@ -98,7 +98,7 @@ void taosRemoveOldFiles(char *dirname, int32_t keepDays) {
}
if
(
fileSec
<=
100
)
continue
;
int32_t
days
=
(
int32_t
)(
ABS
(
sec
-
fileSec
)
/
86400
+
1
);
int32_t
days
=
(
int32_t
)(
T
ABS
(
sec
-
fileSec
)
/
86400
+
1
);
if
(
days
>
keepDays
)
{
(
void
)
remove
(
filename
);
//printf("file:%s is removed, days:%d keepDays:%d", filename, days, keepDays);
...
...
source/util/src/tlog.c
浏览文件 @
edc118e8
...
...
@@ -185,7 +185,7 @@ static void taosKeepOldLog(char *oldName) {
}
}
taosRemoveOldFiles
(
tsLogDir
,
ABS
(
tsLogKeepDays
));
taosRemoveOldFiles
(
tsLogDir
,
T
ABS
(
tsLogKeepDays
));
}
static
void
*
taosThreadToOpenNewFile
(
void
*
param
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录