Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
6f5ee32d
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6f5ee32d
编写于
2月 02, 2021
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/linux' into feature/TD-1925_new
上级
5b232fd9
ea0aed5d
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
15 addition
and
37 deletion
+15
-37
deps/MsvcLibX/include/msvcUnistd.h
deps/MsvcLibX/include/msvcUnistd.h
+3
-2
src/common/src/tglobal.c
src/common/src/tglobal.c
+1
-1
src/os/inc/osDef.h
src/os/inc/osDef.h
+0
-4
src/os/inc/osWindows.h
src/os/inc/osWindows.h
+2
-10
src/os/src/windows/wString.c
src/os/src/windows/wString.c
+0
-12
src/os/src/windows/wWordexp.c
src/os/src/windows/wWordexp.c
+0
-4
src/tfs/src/tfs.c
src/tfs/src/tfs.c
+1
-1
src/util/src/tconfig.c
src/util/src/tconfig.c
+5
-0
tests/script/wtest.bat
tests/script/wtest.bat
+3
-3
未找到文件。
deps/MsvcLibX/include/msvcUnistd.h
浏览文件 @
6f5ee32d
...
...
@@ -89,11 +89,12 @@ pid_t getppid(void); /* Get parent PID */
/* Path management */
#if defined(_WIN32)
#if defined(_UTF8_SOURCE) || defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
#define realpath realpathU
#if defined(_UTF8_SOURCE) || defined(_BSD_SOURCE) || defined(_GNU_SOURCE)
// #define realpath realpathU
#define CompactPath CompactPathU
#else
/* _ANSI_SOURCE */
#define realpath realpathA
//
#define realpath realpathA
#define CompactPath CompactPathA
#endif
#endif
/* defined(_WIN32) */
...
...
src/common/src/tglobal.c
浏览文件 @
6f5ee32d
...
...
@@ -59,7 +59,6 @@ char tsLocale[TSDB_LOCALE_LEN] = {0};
char
tsCharset
[
TSDB_LOCALE_LEN
]
=
{
0
};
// default encode string
int8_t
tsEnableCoreFile
=
0
;
int32_t
tsMaxBinaryDisplayWidth
=
30
;
char
tsTempDir
[
TSDB_FILENAME_LEN
]
=
"/tmp/"
;
/*
* denote if the server needs to compress response message at the application layer to client, including query rsp,
...
...
@@ -182,6 +181,7 @@ char tsDnodeDir[TSDB_FILENAME_LEN] = {0};
char
tsMnodeDir
[
TSDB_FILENAME_LEN
]
=
{
0
};
char
tsDataDir
[
TSDB_FILENAME_LEN
]
=
{
0
};
char
tsScriptDir
[
TSDB_FILENAME_LEN
]
=
{
0
};
char
tsTempDir
[
TSDB_FILENAME_LEN
]
=
"/tmp/"
;
int32_t
tsDiskCfgNum
=
0
;
...
...
src/os/inc/osDef.h
浏览文件 @
6f5ee32d
...
...
@@ -26,10 +26,6 @@ extern "C" {
#endif
#endif
#ifndef STDERR_FILENO
#define STDERR_FILENO (2)
#endif
#define FD_VALID(x) ((x) > STDERR_FILENO)
#define FD_INITIALIZER ((int32_t)-1)
...
...
src/os/inc/osWindows.h
浏览文件 @
6f5ee32d
...
...
@@ -46,6 +46,8 @@
#include "msvcFcntl.h"
#include "msvcLibgen.h"
#include "msvcStdio.h"
#include "msvcUnistd.h"
#include "msvcLibgen.h"
#include "sys/msvcStat.h"
#include "sys/msvcTypes.h"
...
...
@@ -144,7 +146,6 @@ typedef int (*__compar_fn_t)(const void *, const void *);
#define in_addr_t unsigned long
#define socklen_t int
#define htobe64 htonll
#define getpid _getpid
struct
tm
*
localtime_r
(
const
time_t
*
timep
,
struct
tm
*
result
);
char
*
strptime
(
const
char
*
buf
,
const
char
*
fmt
,
struct
tm
*
tm
);
...
...
@@ -153,15 +154,8 @@ char * getpass(const char *prefix);
int
flock
(
int
fd
,
int
option
);
int
fsync
(
int
filedes
);
char
*
strndup
(
const
char
*
s
,
size_t
n
);
char
*
dirname
(
char
*
pszPathname
);
int
gettimeofday
(
struct
timeval
*
ptv
,
void
*
pTimeZone
);
// for access function in io.h
#define F_OK 00 //Existence only
#define W_OK 02 //Write - only
#define R_OK 04 //Read - only
#define X_OK 06 //Read and write
// for send function in tsocket.c
#define MSG_NOSIGNAL 0
#define SO_NO_CHECK 0x1234
...
...
@@ -208,8 +202,6 @@ typedef struct {
int
wordexp
(
char
*
words
,
wordexp_t
*
pwordexp
,
int
flags
);
void
wordfree
(
wordexp_t
*
pwordexp
);
char
*
realpath
(
char
*
path
,
char
*
resolved_path
);
#define openlog(a, b, c)
#define closelog()
#define LOG_ERR 0
...
...
src/os/src/windows/wString.c
浏览文件 @
6f5ee32d
...
...
@@ -75,18 +75,6 @@ char *getpass(const char *prefix) {
return
passwd
;
}
char
*
strndup
(
const
char
*
s
,
size_t
n
)
{
size_t
len
=
strlen
(
s
);
if
(
len
>=
n
)
{
len
=
n
;
}
char
*
r
=
calloc
(
len
+
1
,
1
);
memcpy
(
r
,
s
,
len
);
r
[
len
]
=
0
;
return
r
;
}
int
twcslen
(
const
wchar_t
*
wcs
)
{
int
*
wstr
=
(
int
*
)
wcs
;
if
(
NULL
==
wstr
)
{
...
...
src/os/src/windows/wWordexp.c
浏览文件 @
6f5ee32d
...
...
@@ -38,7 +38,3 @@ int wordexp(char *words, wordexp_t *pwordexp, int flags) {
}
void
wordfree
(
wordexp_t
*
pwordexp
)
{}
char
*
realpath
(
char
*
path
,
char
*
resolved_path
)
{
return
_fullpath
(
path
,
resolved_path
,
TSDB_FILENAME_LEN
-
1
);
}
\ No newline at end of file
src/tfs/src/tfs.c
浏览文件 @
6f5ee32d
...
...
@@ -593,7 +593,7 @@ void taosGetDisk() {
tsAvailLogDirGB
=
(
float
)(
diskSize
.
avail
/
unit
);
}
if
(
taosGetDiskSize
(
"/tmp"
,
&
diskSize
)
==
0
)
{
if
(
taosGetDiskSize
(
tsTempDir
,
&
diskSize
)
==
0
)
{
tsTotalTmpDirGB
=
(
float
)(
diskSize
.
tsize
/
unit
);
tsAvailTmpDirectorySpace
=
(
float
)(
diskSize
.
avail
/
unit
);
}
...
...
src/util/src/tconfig.c
浏览文件 @
6f5ee32d
...
...
@@ -134,6 +134,11 @@ static bool taosReadDirectoryConfig(SGlobalCfg *cfg, char *input_value) {
wordfree
(
&
full_path
);
char
tmp
[
1025
]
=
{
0
};
if
(
realpath
(
option
,
tmp
)
!=
NULL
)
{
strcpy
(
option
,
tmp
);
}
int
code
=
taosMkDir
(
option
,
0755
);
if
(
code
!=
0
)
{
terrno
=
TAOS_SYSTEM_ERROR
(
errno
);
...
...
tests/script/wtest.bat
浏览文件 @
6f5ee32d
...
...
@@ -44,10 +44,10 @@ echo serverPort 7100 >> %TAOS_CFG%
echo
logDir
%LOG_DIR%
>>
%TAOS_CFG%
echo
scriptDir
%SCRIPT_DIR%
>>
%TAOS_CFG%
echo
numOfLogLines
100000000
>>
%TAOS_CFG%
echo
rpcDebugFlag
1
43
>>
%TAOS_CFG%
echo
rpcDebugFlag
1
35
>>
%TAOS_CFG%
echo
tmrDebugFlag
131
>>
%TAOS_CFG%
echo
cDebugFlag
1
43
>>
%TAOS_CFG%
echo
udebugFlag
1
43
>>
%TAOS_CFG%
echo
cDebugFlag
1
35
>>
%TAOS_CFG%
echo
udebugFlag
1
35
>>
%TAOS_CFG%
echo
wal
0
>>
%TAOS_CFG%
echo
asyncLog
0
>>
%TAOS_CFG%
echo
locale
en_US
.UTF
-
8
>>
%TAOS_CFG%
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录