Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
10a21ba8
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
10a21ba8
编写于
2月 23, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
version
上级
4f353da4
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
41 addition
and
9 deletion
+41
-9
include/common/tglobal.h
include/common/tglobal.h
+0
-6
include/util/version.h
include/util/version.h
+33
-0
source/client/src/clientMain.c
source/client/src/clientMain.c
+1
-0
source/dnode/mgmt/daemon/inc/dmnInt.h
source/dnode/mgmt/daemon/inc/dmnInt.h
+1
-0
source/dnode/mnode/impl/src/mndProfile.c
source/dnode/mnode/impl/src/mndProfile.c
+1
-0
source/os/src/osEnv.c
source/os/src/osEnv.c
+3
-3
source/util/src/tlog.c
source/util/src/tlog.c
+1
-0
tools/shell/src/shellLinux.c
tools/shell/src/shellLinux.c
+1
-0
未找到文件。
include/common/tglobal.h
浏览文件 @
10a21ba8
...
...
@@ -59,12 +59,6 @@ extern int64_t tsMaxRetentWindow;
extern
uint32_t
tsVersion
;
// build info
extern
char
version
[];
extern
char
compatible_version
[];
extern
char
gitinfo
[];
extern
char
gitinfoOfInternal
[];
extern
char
buildinfo
[];
// lossy
extern
char
tsLossyColumns
[];
...
...
include/util/version.h
0 → 100644
浏览文件 @
10a21ba8
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_UTIL_VERSION_H
#define _TD_UTIL_VERSION_H
#ifdef __cplusplus
extern
"C"
{
#endif
extern
char
version
[];
extern
char
compatible_version
[];
extern
char
gitinfo
[];
extern
char
gitinfoOfInternal
[];
extern
char
buildinfo
[];
#ifdef __cplusplus
}
#endif
#endif
/*_TD_UTIL_VERSION_H*/
source/client/src/clientMain.c
浏览文件 @
10a21ba8
...
...
@@ -7,6 +7,7 @@
#include "tmsg.h"
#include "tglobal.h"
#include "catalog.h"
#include "version.h"
#define TSC_VAR_NOT_RELEASE 1
#define TSC_VAR_RELEASED 0
...
...
source/dnode/mgmt/daemon/inc/dmnInt.h
浏览文件 @
10a21ba8
...
...
@@ -22,6 +22,7 @@
#include "taoserror.h"
#include "tglobal.h"
#include "ulog.h"
#include "version.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mnode/impl/src/mndProfile.c
浏览文件 @
10a21ba8
...
...
@@ -21,6 +21,7 @@
#include "mndStb.h"
#include "mndUser.h"
#include "tglobal.h"
#include "version.h"
#define QUERY_ID_SIZE 20
#define QUERY_OBJ_ID_SIZE 18
...
...
source/os/src/osEnv.c
浏览文件 @
10a21ba8
...
...
@@ -29,11 +29,11 @@ void taosUpdateTempSpace() { taosGetDiskSize(tsTempDir, &tsTempSpace.size); }
void
taosUpdateDataSpace
()
{
taosGetDiskSize
(
tsDataDir
,
&
tsDataSpace
.
size
);
}
bool
taosLogSpaceAvailable
()
{
return
ts
DataSpace
.
reserved
>
tsData
Space
.
size
.
avail
;
}
bool
taosLogSpaceAvailable
()
{
return
ts
LogSpace
.
reserved
<
tsLog
Space
.
size
.
avail
;
}
bool
taosTempSpaceAvailable
()
{
return
tsTempSpace
.
reserved
>
tsTempSpace
.
size
.
avail
;
}
bool
taosTempSpaceAvailable
()
{
return
tsTempSpace
.
reserved
<
tsTempSpace
.
size
.
avail
;
}
bool
taosDataSpaceAvailable
()
{
return
tsDataSpace
.
reserved
>
tsDataSpace
.
size
.
avail
;
}
bool
taosDataSpaceAvailable
()
{
return
tsDataSpace
.
reserved
<
tsDataSpace
.
size
.
avail
;
}
void
taosUpdateAllSpace
()
{
taosUpdateLogSpace
();
...
...
source/util/src/tlog.c
浏览文件 @
10a21ba8
...
...
@@ -119,6 +119,7 @@ static int32_t taosStartLog() {
int32_t
taosInitLog
(
const
char
*
logName
,
int
maxFiles
)
{
if
(
tsLogInited
)
return
0
;
taosUpdateLogSpace
();
char
fullName
[
PATH_MAX
]
=
{
0
};
snprintf
(
fullName
,
PATH_MAX
,
"%s"
TD_DIRSEP
"%s"
,
tsLogDir
,
logName
);
...
...
tools/shell/src/shellLinux.c
浏览文件 @
10a21ba8
...
...
@@ -20,6 +20,7 @@
#include "shellCommand.h"
#include "tkey.h"
#include "ulog.h"
#include "version.h"
#include <wordexp.h>
#include <argp.h>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录