Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
王长生-AnH
TDengine
提交
5e48daf5
T
TDengine
项目概览
王长生-AnH
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5e48daf5
编写于
11月 16, 2019
作者:
S
slguan
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into feature/slguan
上级
8c55d486
7aeacaf6
变更
80
隐藏空白更改
内联
并排
Showing
80 changed file
with
231 addition
and
541 deletion
+231
-541
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+1
-0
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+2
-0
packaging/tools/install.sh
packaging/tools/install.sh
+2
-1
packaging/tools/make_install.sh
packaging/tools/make_install.sh
+3
-2
packaging/tools/makepkg.sh
packaging/tools/makepkg.sh
+1
-1
packaging/tools/post.sh
packaging/tools/post.sh
+2
-1
packaging/tools/preun.sh
packaging/tools/preun.sh
+1
-0
packaging/tools/remove.sh
packaging/tools/remove.sh
+1
-0
src/client/src/tscParseInsert.c
src/client/src/tscParseInsert.c
+12
-12
src/client/src/tscServer.c
src/client/src/tscServer.c
+2
-2
src/inc/taoserror.h
src/inc/taoserror.h
+142
-0
src/inc/taosmsg.h
src/inc/taosmsg.h
+1
-115
src/kit/shell/src/shellCommand.c
src/kit/shell/src/shellCommand.c
+0
-8
src/kit/shell/src/shellEngine.c
src/kit/shell/src/shellEngine.c
+0
-10
src/kit/shell/src/shellLinux.c
src/kit/shell/src/shellLinux.c
+1
-19
src/kit/shell/src/shellMain.c
src/kit/shell/src/shellMain.c
+0
-7
src/modules/http/src/httpServer.c
src/modules/http/src/httpServer.c
+1
-17
src/os/linux/inc/os.h
src/os/linux/inc/os.h
+8
-0
src/rpc/src/thaship.c
src/rpc/src/thaship.c
+0
-8
src/rpc/src/tmsghdr.c
src/rpc/src/tmsghdr.c
+1
-4
src/rpc/src/trpc.c
src/rpc/src/trpc.c
+1
-9
src/rpc/src/ttcpclient.c
src/rpc/src/ttcpclient.c
+0
-9
src/rpc/src/ttcpserver.c
src/rpc/src/ttcpserver.c
+0
-10
src/rpc/src/tudp.c
src/rpc/src/tudp.c
+0
-9
src/sdb/src/hashstr.c
src/sdb/src/hashstr.c
+1
-7
src/sdb/src/sdbEngine.c
src/sdb/src/sdbEngine.c
+1
-13
src/system/detail/inc/mgmt.h
src/system/detail/inc/mgmt.h
+1
-6
src/system/detail/inc/mgmtBalance.h
src/system/detail/inc/mgmtBalance.h
+1
-3
src/system/detail/inc/mgmtSystem.h
src/system/detail/inc/mgmtSystem.h
+0
-2
src/system/detail/inc/vnode.h
src/system/detail/inc/vnode.h
+1
-6
src/system/detail/inc/vnodePeer.h
src/system/detail/inc/vnodePeer.h
+1
-1
src/system/detail/inc/vnodeQueryImpl.h
src/system/detail/inc/vnodeQueryImpl.h
+1
-2
src/system/detail/inc/vnodeRead.h
src/system/detail/inc/vnodeRead.h
+1
-1
src/system/detail/inc/vnodeShell.h
src/system/detail/inc/vnodeShell.h
+1
-1
src/system/detail/inc/vnodeStore.h
src/system/detail/inc/vnodeStore.h
+0
-2
src/system/detail/inc/vnodeSystem.h
src/system/detail/inc/vnodeSystem.h
+0
-2
src/system/detail/src/dnodeMgmt.c
src/system/detail/src/dnodeMgmt.c
+2
-3
src/system/detail/src/dnodeService.c
src/system/detail/src/dnodeService.c
+2
-14
src/system/detail/src/dnodeSystem.c
src/system/detail/src/dnodeSystem.c
+1
-5
src/system/detail/src/mgmtAcct.c
src/system/detail/src/mgmtAcct.c
+1
-1
src/system/detail/src/mgmtConn.c
src/system/detail/src/mgmtConn.c
+3
-1
src/system/detail/src/mgmtDnode.c
src/system/detail/src/mgmtDnode.c
+1
-3
src/system/detail/src/mgmtDnodeInt.c
src/system/detail/src/mgmtDnodeInt.c
+1
-2
src/system/detail/src/mgmtMeter.c
src/system/detail/src/mgmtMeter.c
+1
-4
src/system/detail/src/mgmtProfile.c
src/system/detail/src/mgmtProfile.c
+2
-1
src/system/detail/src/mgmtShell.c
src/system/detail/src/mgmtShell.c
+1
-1
src/system/detail/src/mgmtSupertableQuery.c
src/system/detail/src/mgmtSupertableQuery.c
+1
-4
src/system/detail/src/mgmtSystem.c
src/system/detail/src/mgmtSystem.c
+1
-10
src/system/detail/src/mgmtUser.c
src/system/detail/src/mgmtUser.c
+1
-1
src/system/detail/src/mgmtUtil.c
src/system/detail/src/mgmtUtil.c
+1
-4
src/system/detail/src/mgmtVgroup.c
src/system/detail/src/mgmtVgroup.c
+1
-1
src/system/detail/src/vnodeCache.c
src/system/detail/src/vnodeCache.c
+1
-3
src/system/detail/src/vnodeCommit.c
src/system/detail/src/vnodeCommit.c
+1
-9
src/system/detail/src/vnodeFile.c
src/system/detail/src/vnodeFile.c
+2
-9
src/system/detail/src/vnodeFileUtil.c
src/system/detail/src/vnodeFileUtil.c
+1
-5
src/system/detail/src/vnodeFilterFunc.c
src/system/detail/src/vnodeFilterFunc.c
+1
-5
src/system/detail/src/vnodeImport.c
src/system/detail/src/vnodeImport.c
+1
-4
src/system/detail/src/vnodeMeter.c
src/system/detail/src/vnodeMeter.c
+1
-4
src/system/detail/src/vnodeQueryProcess.c
src/system/detail/src/vnodeQueryProcess.c
+1
-4
src/system/detail/src/vnodeRead.c
src/system/detail/src/vnodeRead.c
+1
-6
src/system/detail/src/vnodeShell.c
src/system/detail/src/vnodeShell.c
+2
-4
src/system/detail/src/vnodeStore.c
src/system/detail/src/vnodeStore.c
+1
-5
src/system/detail/src/vnodeSystem.c
src/system/detail/src/vnodeSystem.c
+1
-9
src/system/detail/src/vnodeTagMgmt.c
src/system/detail/src/vnodeTagMgmt.c
+1
-3
src/system/detail/src/vnodeUtil.c
src/system/detail/src/vnodeUtil.c
+1
-4
src/util/src/ihash.c
src/util/src/ihash.c
+0
-7
src/util/src/tcache.c
src/util/src/tcache.c
+1
-9
src/util/src/tcompression.c
src/util/src/tcompression.c
+0
-6
src/util/src/textbuffer.c
src/util/src/textbuffer.c
+0
-11
src/util/src/thash.c
src/util/src/thash.c
+0
-7
src/util/src/thistogram.c
src/util/src/thistogram.c
+1
-7
src/util/src/tidpool.c
src/util/src/tidpool.c
+1
-4
src/util/src/tlog.c
src/util/src/tlog.c
+0
-16
src/util/src/tmem.c
src/util/src/tmem.c
+1
-7
src/util/src/tmodule.c
src/util/src/tmodule.c
+0
-6
src/util/src/tsched.c
src/util/src/tsched.c
+0
-8
src/util/src/tsocket.c
src/util/src/tsocket.c
+0
-11
src/util/src/ttimer.c
src/util/src/ttimer.c
+0
-6
src/util/src/ttypes.c
src/util/src/ttypes.c
+0
-9
src/util/src/tutil.c
src/util/src/tutil.c
+0
-8
未找到文件。
packaging/deb/makedeb.sh
浏览文件 @
5e48daf5
...
...
@@ -49,6 +49,7 @@ cp ${compile_dir}/build/bin/taosd ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/build/bin/taos
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/lib/
${
libfile
}
${
pkg_dir
}${
install_home_path
}
/driver
cp
${
compile_dir
}
/../src/inc/taos.h
${
pkg_dir
}${
install_home_path
}
/include
cp
${
compile_dir
}
/../src/inc/taoserror.h
${
pkg_dir
}${
install_home_path
}
/include
cp
-r
${
top_dir
}
/tests/examples/
*
${
pkg_dir
}${
install_home_path
}
/examples
cp
-r
${
top_dir
}
/src/connector/grafana
${
pkg_dir
}${
install_home_path
}
/connector
cp
-r
${
top_dir
}
/src/connector/python
${
pkg_dir
}${
install_home_path
}
/connector
...
...
packaging/rpm/tdengine.spec
浏览文件 @
5e48daf5
...
...
@@ -62,6 +62,7 @@ cp %{_compiledir}/build/bin/taosdemo %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdump %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/lib/${libfile} %{buildroot}%{homepath}/driver
cp %{_compiledir}/../src/inc/taos.h %{buildroot}%{homepath}/include
cp %{_compiledir}/../src/inc/taoserror.h %{buildroot}%{homepath}/include
cp -r %{_compiledir}/../src/connector/grafana %{buildroot}%{homepath}/connector
cp -r %{_compiledir}/../src/connector/python %{buildroot}%{homepath}/connector
cp -r %{_compiledir}/../src/connector/go %{buildroot}%{homepath}/connector
...
...
@@ -138,6 +139,7 @@ if [ $1 -eq 0 ];then
${csudo} rm -f ${bin_link_dir}/taosdump || :
${csudo} rm -f ${cfg_link_dir}/* || :
${csudo} rm -f ${inc_link_dir}/taos.h || :
${csudo} rm -f ${inc_link_dir}/taoserror.h || :
${csudo} rm -f ${lib_link_dir}/libtaos.* || :
${csudo} rm -f ${log_link_dir} || :
...
...
packaging/tools/install.sh
浏览文件 @
5e48daf5
...
...
@@ -98,9 +98,10 @@ function install_lib() {
}
function
install_header
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
cp
-f
${
script_dir
}
/inc/
*
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_config
()
{
...
...
packaging/tools/make_install.sh
浏览文件 @
5e48daf5
...
...
@@ -109,9 +109,10 @@ function install_lib() {
function
install_header
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
cp
-f
${
source_dir
}
/src/inc/taos.h
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
cp
-f
${
source_dir
}
/src/inc/taos.h
${
source_dir
}
/src/inc/taoserror.h
${
install_main_dir
}
/include
&&
${
csudo
}
chmod
644
${
install_main_dir
}
/include/
*
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
install_main_dir
}
/include/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_config
()
{
...
...
packaging/tools/makepkg.sh
浏览文件 @
5e48daf5
...
...
@@ -22,7 +22,7 @@ install_dir="${release_dir}/taos-${version}-${package_name}-$(echo ${build_time}
bin_files
=
"
${
build_dir
}
/bin/taosd
${
build_dir
}
/bin/taos
${
build_dir
}
/bin/taosdemo
${
build_dir
}
/bin/taosdump
${
script_dir
}
/remove.sh"
versioninfo
=
$(
${
script_dir
}
/get_version.sh
${
code_dir
}
/util/src/version.c
)
lib_files
=
"
${
build_dir
}
/lib/libtaos.so.
${
versioninfo
}
"
header_files
=
"
${
code_dir
}
/inc/taos.h"
header_files
=
"
${
code_dir
}
/inc/taos.h
${
code_dir
}
/inc/taoserror.h
"
cfg_files
=
"
${
top_dir
}
/packaging/cfg/*.cfg"
install_files
=
"
${
script_dir
}
/install.sh
${
script_dir
}
/install_client.sh"
...
...
packaging/tools/post.sh
浏览文件 @
5e48daf5
...
...
@@ -61,8 +61,9 @@ function kill_taosd() {
}
function
install_include
()
{
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
${
inc_link_dir
}
/taoserror.h
|| :
${
csudo
}
ln
-s
${
inc_dir
}
/taos.h
${
inc_link_dir
}
/taos.h
${
csudo
}
ln
-s
${
inc_dir
}
/taoserror.h
${
inc_link_dir
}
/taoserror.h
}
function
install_lib
()
{
...
...
packaging/tools/preun.sh
浏览文件 @
5e48daf5
...
...
@@ -94,6 +94,7 @@ ${csudo} rm -f ${bin_link_dir}/taosdemo || :
${
csudo
}
rm
-f
${
bin_link_dir
}
/taosdump
||
:
${
csudo
}
rm
-f
${
cfg_link_dir
}
/
*
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taoserror.h
||
:
${
csudo
}
rm
-f
${
lib_link_dir
}
/libtaos.
*
||
:
${
csudo
}
rm
-f
${
log_link_dir
}
||
:
...
...
packaging/tools/remove.sh
浏览文件 @
5e48daf5
...
...
@@ -61,6 +61,7 @@ function clean_lib() {
function
clean_header
()
{
# Remove link
${
csudo
}
rm
-f
${
inc_link_dir
}
/taos.h
||
:
${
csudo
}
rm
-f
${
inc_link_dir
}
/taoserror.h
||
:
}
function
clean_config
()
{
...
...
src/client/src/tscParseInsert.c
浏览文件 @
5e48daf5
...
...
@@ -191,10 +191,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int8_t
*
)
payload
)
=
TSDB_DATA_TINYINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT8_MAX
||
iv
<=
INT8_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT8_MAX
||
iv
<=
INT8_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int8_t
*
)
payload
)
=
(
int8_t
)
iv
;
...
...
@@ -210,10 +210,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int16_t
*
)
payload
)
=
TSDB_DATA_SMALLINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT16_MAX
||
iv
<=
INT16_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT16_MAX
||
iv
<=
INT16_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int16_t
*
)
payload
)
=
(
int16_t
)
iv
;
...
...
@@ -228,10 +228,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int32_t
*
)
payload
)
=
TSDB_DATA_INT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT32_MAX
||
iv
<=
INT32_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT32_MAX
||
iv
<=
INT32_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int32_t
*
)
payload
)
=
(
int32_t
)
iv
;
...
...
@@ -247,10 +247,10 @@ int32_t tsParseOneColumnData(SSchema *pSchema, SSQLToken *pToken, char *payload,
*
((
int64_t
*
)
payload
)
=
TSDB_DATA_BIGINT_NULL
;
}
else
{
numType
=
tscToInteger
(
pToken
,
&
iv
,
&
endptr
);
if
(
errno
==
ERANGE
||
iv
>
INT64_MAX
||
iv
<=
INT64_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
else
if
(
TK_ILLEGAL
==
numType
)
{
if
(
TK_ILLEGAL
==
numType
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is illegal"
);
}
else
if
(
errno
==
ERANGE
||
iv
>
INT64_MAX
||
iv
<=
INT64_MIN
)
{
INVALID_SQL_RET_MSG
(
msg
,
"data is overflow"
);
}
*
((
int64_t
*
)
payload
)
=
iv
;
...
...
src/client/src/tscServer.c
浏览文件 @
5e48daf5
...
...
@@ -281,9 +281,9 @@ void tscGetConnToVnode(SSqlObj *pSql, uint8_t *pCode) {
break
;
}
// the pSql->res.code is the previous error code.
// the pSql->res.code is the previous error
(status)
code.
if
(
pSql
->
thandle
==
NULL
&&
pSql
->
retry
>=
pSql
->
maxRetry
)
{
if
(
pSql
->
res
.
code
!=
TSDB_CODE_SUCCESS
)
{
if
(
pSql
->
res
.
code
!=
TSDB_CODE_SUCCESS
&&
pSql
->
res
.
code
!=
TSDB_CODE_ACTION_IN_PROGRESS
)
{
*
pCode
=
pSql
->
res
.
code
;
}
...
...
src/inc/taoserror.h
0 → 100644
浏览文件 @
5e48daf5
/*
* 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 TDENGINE_TAOSERROR_H
#define TDENGINE_TAOSERROR_H
#ifdef __cplusplus
extern
"C"
{
#endif
#define TSDB_CODE_SUCCESS 0
#define TSDB_CODE_ACTION_IN_PROGRESS 1
#define TSDB_CODE_LAST_SESSION_NOT_FINISHED 5
#define TSDB_CODE_INVALID_SESSION_ID 6
#define TSDB_CODE_INVALID_TRAN_ID 7
#define TSDB_CODE_INVALID_MSG_TYPE 8
#define TSDB_CODE_ALREADY_PROCESSED 9
#define TSDB_CODE_AUTH_FAILURE 10
#define TSDB_CODE_WRONG_MSG_SIZE 11
#define TSDB_CODE_UNEXPECTED_RESPONSE 12
#define TSDB_CODE_INVALID_RESPONSE_TYPE 13
#define TSDB_CODE_NO_RESOURCE 14
#define TSDB_CODE_INVALID_TIME_STAMP 15
#define TSDB_CODE_MISMATCHED_METER_ID 16
#define TSDB_CODE_ACTION_TRANS_NOT_FINISHED 17
#define TSDB_CODE_ACTION_NOT_ONLINE 18
#define TSDB_CODE_ACTION_SEND_FAILD 19
#define TSDB_CODE_NOT_ACTIVE_SESSION 20
#define TSDB_CODE_INVALID_VNODE_ID 21
#define TSDB_CODE_APP_ERROR 22
#define TSDB_CODE_INVALID_IE 23
#define TSDB_CODE_INVALID_VALUE 24
#define TSDB_CODE_REDIRECT 25
#define TSDB_CODE_ALREADY_THERE 26
#define TSDB_CODE_INVALID_METER_ID 27
#define TSDB_CODE_INVALID_SQL 28
#define TSDB_CODE_NETWORK_UNAVAIL 29
#define TSDB_CODE_INVALID_MSG_LEN 30
#define TSDB_CODE_INVALID_DB 31
#define TSDB_CODE_INVALID_TABLE 32
#define TSDB_CODE_DB_ALREADY_EXIST 33
#define TSDB_CODE_TABLE_ALREADY_EXIST 34
#define TSDB_CODE_INVALID_USER 35
#define TSDB_CODE_INVALID_ACCT 36
#define TSDB_CODE_INVALID_PASS 37
#define TSDB_CODE_DB_NOT_SELECTED 38
#define TSDB_CODE_MEMORY_CORRUPTED 39
#define TSDB_CODE_USER_ALREADY_EXIST 40
#define TSDB_CODE_NO_RIGHTS 41
#define TSDB_CODE_DISCONNECTED 42
#define TSDB_CODE_NO_MASTER 43
#define TSDB_CODE_NOT_CONFIGURED 44
#define TSDB_CODE_INVALID_OPTION 45
#define TSDB_CODE_NODE_OFFLINE 46
#define TSDB_CODE_SYNC_REQUIRED 47
#define TSDB_CODE_NO_ENOUGH_DNODES 48
#define TSDB_CODE_UNSYNCED 49
#define TSDB_CODE_TOO_SLOW 50
#define TSDB_CODE_OTHERS 51
#define TSDB_CODE_NO_REMOVE_MASTER 52
#define TSDB_CODE_WRONG_SCHEMA 53
#define TSDB_CODE_NOT_ACTIVE_VNODE 54
#define TSDB_CODE_TOO_MANY_USERS 55
#define TSDB_CODE_TOO_MANY_DATABSES 56
#define TSDB_CODE_TOO_MANY_TABLES 57
#define TSDB_CODE_TOO_MANY_DNODES 58
#define TSDB_CODE_TOO_MANY_ACCTS 59
#define TSDB_CODE_ACCT_ALREADY_EXIST 60
#define TSDB_CODE_DNODE_ALREADY_EXIST 61
#define TSDB_CODE_SDB_ERROR 62
#define TSDB_CODE_METRICMETA_EXPIRED 63 // local cached metric-meta expired causes error in metric query
#define TSDB_CODE_NOT_READY 64 // peer is not ready to process data
#define TSDB_CODE_MAX_SESSIONS 65 // too many sessions
#define TSDB_CODE_MAX_CONNECTIONS 66 // too many connections
#define TSDB_CODE_SESSION_ALREADY_EXIST 67
#define TSDB_CODE_NO_QSUMMARY 68
#define TSDB_CODE_SERV_OUT_OF_MEMORY 69
#define TSDB_CODE_INVALID_QHANDLE 70
#define TSDB_CODE_RELATED_TABLES_EXIST 71
#define TSDB_CODE_MONITOR_DB_FORBEIDDEN 72
#define TSDB_CODE_VG_COMMITLOG_INIT_FAILED 73
#define TSDB_CODE_VG_INIT_FAILED 74
#define TSDB_CODE_DATA_ALREADY_IMPORTED 75
#define TSDB_CODE_OPS_NOT_SUPPORT 76
#define TSDB_CODE_INVALID_QUERY_ID 77
#define TSDB_CODE_INVALID_STREAM_ID 78
#define TSDB_CODE_INVALID_CONNECTION 79
#define TSDB_CODE_ACTION_NOT_BALANCED 80
#define TSDB_CODE_CLI_OUT_OF_MEMORY 81
#define TSDB_CODE_DATA_OVERFLOW 82
#define TSDB_CODE_QUERY_CANCELLED 83
#define TSDB_CODE_GRANT_TIMESERIES_LIMITED 84
#define TSDB_CODE_GRANT_EXPIRED 85
#define TSDB_CODE_CLI_NO_DISKSPACE 86
#define TSDB_CODE_FILE_CORRUPTED 87
#define TSDB_CODE_INVALID_CLIENT_VERSION 88
#define TSDB_CODE_INVALID_ACCT_PARAMETER 89
#define TSDB_CODE_NOT_ENOUGH_TIME_SERIES 90
#define TSDB_CODE_NO_WRITE_ACCESS 91
#define TSDB_CODE_NO_READ_ACCESS 92
#define TSDB_CODE_GRANT_DB_LIMITED 93
#define TSDB_CODE_GRANT_USER_LIMITED 94
#define TSDB_CODE_GRANT_CONN_LIMITED 95
#define TSDB_CODE_GRANT_STREAM_LIMITED 96
#define TSDB_CODE_GRANT_SPEED_LIMITED 97
#define TSDB_CODE_GRANT_STORAGE_LIMITED 98
#define TSDB_CODE_GRANT_QUERYTIME_LIMITED 99
#define TSDB_CODE_GRANT_ACCT_LIMITED 100
#define TSDB_CODE_GRANT_DNODE_LIMITED 101
#define TSDB_CODE_GRANT_CPU_LIMITED 102
#define TSDB_CODE_SESSION_NOT_READY 103 // table NOT in ready state
#define TSDB_CODE_BATCH_SIZE_TOO_BIG 104
#define TSDB_CODE_TIMESTAMP_OUT_OF_RANGE 105
#define TSDB_CODE_INVALID_QUERY_MSG 106 // failed to validate the sql expression msg by vnode
#define TSDB_CODE_CACHE_BLOCK_TS_DISORDERED 107 // time stamp in cache block is disordered
#define TSDB_CODE_FILE_BLOCK_TS_DISORDERED 108 // time stamp in file block is disordered
#define TSDB_CODE_INVALID_COMMIT_LOG 109 // commit log init failed
#define TSDB_CODE_SERVER_NO_SPACE 110
#define TSDB_CODE_NOT_SUPER_TABLE 111 // operation only available for super table
#define TSDB_CODE_DUPLICATE_TAGS 112 // tags value for join not unique
#define TSDB_CODE_INVALID_SUBMIT_MSG 113
#define TSDB_CODE_NOT_ACTIVE_TABLE 114
#define TSDB_CODE_INVALID_TABLE_ID 115
#ifdef __cplusplus
}
#endif
#endif //TDENGINE_TAOSERROR_H
src/inc/taosmsg.h
浏览文件 @
5e48daf5
...
...
@@ -21,121 +21,7 @@ extern "C" {
#endif
#include "tsdb.h"
#define TSDB_CODE_SUCCESS 0
#define TSDB_CODE_ACTION_IN_PROGRESS 1
#define TSDB_CODE_LAST_SESSION_NOT_FINISHED 5
#define TSDB_CODE_INVALID_SESSION_ID 6
#define TSDB_CODE_INVALID_TRAN_ID 7
#define TSDB_CODE_INVALID_MSG_TYPE 8
#define TSDB_CODE_ALREADY_PROCESSED 9
#define TSDB_CODE_AUTH_FAILURE 10
#define TSDB_CODE_WRONG_MSG_SIZE 11
#define TSDB_CODE_UNEXPECTED_RESPONSE 12
#define TSDB_CODE_INVALID_RESPONSE_TYPE 13
#define TSDB_CODE_NO_RESOURCE 14
#define TSDB_CODE_INVALID_TIME_STAMP 15
#define TSDB_CODE_MISMATCHED_METER_ID 16
#define TSDB_CODE_ACTION_TRANS_NOT_FINISHED 17
#define TSDB_CODE_ACTION_NOT_ONLINE 18
#define TSDB_CODE_ACTION_SEND_FAILD 19
#define TSDB_CODE_NOT_ACTIVE_SESSION 20
#define TSDB_CODE_INVALID_VNODE_ID 21
#define TSDB_CODE_APP_ERROR 22
#define TSDB_CODE_INVALID_IE 23
#define TSDB_CODE_INVALID_VALUE 24
#define TSDB_CODE_REDIRECT 25
#define TSDB_CODE_ALREADY_THERE 26
#define TSDB_CODE_INVALID_METER_ID 27
#define TSDB_CODE_INVALID_SQL 28
#define TSDB_CODE_NETWORK_UNAVAIL 29
#define TSDB_CODE_INVALID_MSG_LEN 30
#define TSDB_CODE_INVALID_DB 31
#define TSDB_CODE_INVALID_TABLE 32
#define TSDB_CODE_DB_ALREADY_EXIST 33
#define TSDB_CODE_TABLE_ALREADY_EXIST 34
#define TSDB_CODE_INVALID_USER 35
#define TSDB_CODE_INVALID_ACCT 36
#define TSDB_CODE_INVALID_PASS 37
#define TSDB_CODE_DB_NOT_SELECTED 38
#define TSDB_CODE_MEMORY_CORRUPTED 39
#define TSDB_CODE_USER_ALREADY_EXIST 40
#define TSDB_CODE_NO_RIGHTS 41
#define TSDB_CODE_DISCONNECTED 42
#define TSDB_CODE_NO_MASTER 43
#define TSDB_CODE_NOT_CONFIGURED 44
#define TSDB_CODE_INVALID_OPTION 45
#define TSDB_CODE_NODE_OFFLINE 46
#define TSDB_CODE_SYNC_REQUIRED 47
#define TSDB_CODE_NO_ENOUGH_DNODES 48
#define TSDB_CODE_UNSYNCED 49
#define TSDB_CODE_TOO_SLOW 50
#define TSDB_CODE_OTHERS 51
#define TSDB_CODE_NO_REMOVE_MASTER 52
#define TSDB_CODE_WRONG_SCHEMA 53
#define TSDB_CODE_NOT_ACTIVE_VNODE 54
#define TSDB_CODE_TOO_MANY_USERS 55
#define TSDB_CODE_TOO_MANY_DATABSES 56
#define TSDB_CODE_TOO_MANY_TABLES 57
#define TSDB_CODE_TOO_MANY_DNODES 58
#define TSDB_CODE_TOO_MANY_ACCTS 59
#define TSDB_CODE_ACCT_ALREADY_EXIST 60
#define TSDB_CODE_DNODE_ALREADY_EXIST 61
#define TSDB_CODE_SDB_ERROR 62
#define TSDB_CODE_METRICMETA_EXPIRED 63 // local cached metric-meta expired causes error in metric query
#define TSDB_CODE_NOT_READY 64 // peer is not ready to process data
#define TSDB_CODE_MAX_SESSIONS 65 // too many sessions
#define TSDB_CODE_MAX_CONNECTIONS 66 // too many connections
#define TSDB_CODE_SESSION_ALREADY_EXIST 67
#define TSDB_CODE_NO_QSUMMARY 68
#define TSDB_CODE_SERV_OUT_OF_MEMORY 69
#define TSDB_CODE_INVALID_QHANDLE 70
#define TSDB_CODE_RELATED_TABLES_EXIST 71
#define TSDB_CODE_MONITOR_DB_FORBEIDDEN 72
#define TSDB_CODE_VG_COMMITLOG_INIT_FAILED 73
#define TSDB_CODE_VG_INIT_FAILED 74
#define TSDB_CODE_DATA_ALREADY_IMPORTED 75
#define TSDB_CODE_OPS_NOT_SUPPORT 76
#define TSDB_CODE_INVALID_QUERY_ID 77
#define TSDB_CODE_INVALID_STREAM_ID 78
#define TSDB_CODE_INVALID_CONNECTION 79
#define TSDB_CODE_ACTION_NOT_BALANCED 80
#define TSDB_CODE_CLI_OUT_OF_MEMORY 81
#define TSDB_CODE_DATA_OVERFLOW 82
#define TSDB_CODE_QUERY_CANCELLED 83
#define TSDB_CODE_GRANT_TIMESERIES_LIMITED 84
#define TSDB_CODE_GRANT_EXPIRED 85
#define TSDB_CODE_CLI_NO_DISKSPACE 86
#define TSDB_CODE_FILE_CORRUPTED 87
#define TSDB_CODE_INVALID_CLIENT_VERSION 88
#define TSDB_CODE_INVALID_ACCT_PARAMETER 89
#define TSDB_CODE_NOT_ENOUGH_TIME_SERIES 90
#define TSDB_CODE_NO_WRITE_ACCESS 91
#define TSDB_CODE_NO_READ_ACCESS 92
#define TSDB_CODE_GRANT_DB_LIMITED 93
#define TSDB_CODE_GRANT_USER_LIMITED 94
#define TSDB_CODE_GRANT_CONN_LIMITED 95
#define TSDB_CODE_GRANT_STREAM_LIMITED 96
#define TSDB_CODE_GRANT_SPEED_LIMITED 97
#define TSDB_CODE_GRANT_STORAGE_LIMITED 98
#define TSDB_CODE_GRANT_QUERYTIME_LIMITED 99
#define TSDB_CODE_GRANT_ACCT_LIMITED 100
#define TSDB_CODE_GRANT_DNODE_LIMITED 101
#define TSDB_CODE_GRANT_CPU_LIMITED 102
#define TSDB_CODE_SESSION_NOT_READY 103 // table NOT in ready state
#define TSDB_CODE_BATCH_SIZE_TOO_BIG 104
#define TSDB_CODE_TIMESTAMP_OUT_OF_RANGE 105
#define TSDB_CODE_INVALID_QUERY_MSG 106 // failed to validate the sql expression msg by vnode
#define TSDB_CODE_CACHE_BLOCK_TS_DISORDERED 107 // time stamp in cache block is disordered
#define TSDB_CODE_FILE_BLOCK_TS_DISORDERED 108 // time stamp in file block is disordered
#define TSDB_CODE_INVALID_COMMIT_LOG 109 // commit log init failed
#define TSDB_CODE_SERVER_NO_SPACE 110
#define TSDB_CODE_NOT_SUPER_TABLE 111 //
#define TSDB_CODE_DUPLICATE_TAGS 112 // tags value for join not unique
#define TSDB_CODE_INVALID_SUBMIT_MSG 113
#define TSDB_CODE_NOT_ACTIVE_TABLE 114
#define TSDB_CODE_INVALID_TABLE_ID 115
#include "taoserror.h"
// message type
#define TSDB_MSG_TYPE_REG 1
...
...
src/kit/shell/src/shellCommand.c
浏览文件 @
5e48daf5
...
...
@@ -13,16 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define __USE_XOPEN
#include <wchar.h>
#include "os.h"
#include "shell.h"
#include "shellCommand.h"
...
...
src/kit/shell/src/shellEngine.c
浏览文件 @
5e48daf5
...
...
@@ -16,16 +16,6 @@
#define _XOPEN_SOURCE
#define _DEFAULT_SOURCE
#include <assert.h>
#include <pthread.h>
#include <regex.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include "os.h"
#include "shell.h"
#include "shellCommand.h"
...
...
src/kit/shell/src/shellLinux.c
浏览文件 @
5e48daf5
...
...
@@ -13,27 +13,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <argp.h>
#include <assert.h>
#include <assert.h>
#include <error.h>
#include <pwd.h>
#include <regex.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <wordexp.h>
#define __USE_XOPEN
#include
<wchar.h>
#include
"os.h"
#include "shell.h"
#include "shellCommand.h"
...
...
src/kit/shell/src/shellMain.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <locale.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "shell.h"
#include "tsclient.h"
...
...
src/modules/http/src/httpServer.c
浏览文件 @
5e48daf5
...
...
@@ -13,23 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <pthread.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <syslog.h>
#include <unistd.h>
#include "os.h"
#include "taosmsg.h"
#include "tlog.h"
...
...
src/os/linux/inc/os.h
浏览文件 @
5e48daf5
...
...
@@ -23,6 +23,7 @@ extern "C" {
#include <stdio.h>
#include <stdlib.h>
#include <argp.h>
#include <arpa/inet.h>
#include <assert.h>
#include <ctype.h>
...
...
@@ -31,6 +32,7 @@ extern "C" {
#include <errno.h>
#include <float.h>
#include <ifaddrs.h>
#include <libgen.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
...
...
@@ -41,9 +43,12 @@ extern "C" {
#include <netinet/udp.h>
#include <pthread.h>
#include <pwd.h>
#include <regex.h>
#include <semaphore.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <strings.h>
...
...
@@ -55,7 +60,9 @@ extern "C" {
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/statvfs.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <syslog.h>
...
...
@@ -65,6 +72,7 @@ extern "C" {
#include <wordexp.h>
#include <wctype.h>
#define taosCloseSocket(x) \
{ \
if (VALIDFD(x)) { \
...
...
src/rpc/src/thaship.c
浏览文件 @
5e48daf5
...
...
@@ -13,14 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "os.h"
#include "tlog.h"
#include "tmempool.h"
...
...
src/rpc/src/tmsghdr.c
浏览文件 @
5e48daf5
...
...
@@ -13,10 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include "os.h"
void
taosFreeMsgHdr
(
void
*
hdr
)
{
struct
msghdr
*
msgHdr
=
(
struct
msghdr
*
)
hdr
;
...
...
src/rpc/src/trpc.c
浏览文件 @
5e48daf5
...
...
@@ -13,16 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "os.h"
#include "shash.h"
#include "taosmsg.h"
#include "tidpool.h"
...
...
src/rpc/src/ttcpclient.c
浏览文件 @
5e48daf5
...
...
@@ -13,15 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "taosmsg.h"
#include "tlog.h"
...
...
src/rpc/src/ttcpserver.c
浏览文件 @
5e48daf5
...
...
@@ -13,16 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "taosmsg.h"
#include "tlog.h"
...
...
src/rpc/src/tudp.c
浏览文件 @
5e48daf5
...
...
@@ -13,15 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "taosmsg.h"
#include "thash.h"
...
...
src/sdb/src/hashstr.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "os.h"
#include "tsdb.h"
#define MAX_STR_LEN 40
...
...
src/sdb/src/sdbEngine.c
浏览文件 @
5e48daf5
...
...
@@ -13,19 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "sdb.h"
#include "sdbint.h"
...
...
src/system/detail/inc/mgmt.h
浏览文件 @
5e48daf5
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <syslog.h>
#include <stdint.h>
#include "os.h"
#include "sdb.h"
#include "tglobalcfg.h"
...
...
@@ -34,7 +30,6 @@ extern "C" {
#include "tmempool.h"
#include "trpc.h"
#include "tsdb.h"
#include "tsdb.h"
#include "tskiplist.h"
#include "tsocket.h"
#include "ttime.h"
...
...
src/system/detail/inc/mgmtBalance.h
浏览文件 @
5e48daf5
...
...
@@ -20,9 +20,7 @@
extern
"C"
{
#endif
#include <pthread.h>
#include <semaphore.h>
#include <stdbool.h>
#include "os.h"
#include "dnodeSystem.h"
#include "mgmt.h"
...
...
src/system/detail/inc/mgmtSystem.h
浏览文件 @
5e48daf5
...
...
@@ -20,8 +20,6 @@
extern
"C"
{
#endif
#include <stdint.h>
int
mgmtInitRedirect
();
void
mgmtCleanUpRedirect
();
...
...
src/system/detail/inc/vnode.h
浏览文件 @
5e48daf5
...
...
@@ -20,11 +20,7 @@
extern
"C"
{
#endif
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdint.h>
#include <syslog.h>
#include "os.h"
#include "tglobalcfg.h"
#include "tidpool.h"
...
...
@@ -33,7 +29,6 @@ extern "C" {
#include "trpc.h"
#include "tsclient.h"
#include "tsdb.h"
#include "tsdb.h"
#include "tsocket.h"
#include "ttime.h"
#include "ttimer.h"
...
...
src/system/detail/inc/vnodePeer.h
浏览文件 @
5e48daf5
...
...
@@ -16,7 +16,7 @@
#ifndef TDENGINE_VNODEPEER_H
#define TDENGINE_VNODEPEER_H
#include
<stdint.h>
#include
"os.h"
#ifdef __cplusplus
extern
"C"
{
...
...
src/system/detail/inc/vnodeQueryImpl.h
浏览文件 @
5e48daf5
...
...
@@ -20,8 +20,7 @@
extern
"C"
{
#endif
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "ihash.h"
...
...
src/system/detail/inc/vnodeRead.h
浏览文件 @
5e48daf5
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
#include
<stdint.h>
#include
"os.h"
#include "tinterpolation.h"
#include "vnodeTagMgmt.h"
...
...
src/system/detail/inc/vnodeShell.h
浏览文件 @
5e48daf5
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
#include
<stdint.h>
#include
"os.h"
typedef
struct
{
int
sid
;
...
...
src/system/detail/inc/vnodeStore.h
浏览文件 @
5e48daf5
...
...
@@ -16,8 +16,6 @@
#ifndef TDENGINE_VNODESTORE_H
#define TDENGINE_VNODESTORE_H
#include <stdbool.h>
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
src/system/detail/inc/vnodeSystem.h
浏览文件 @
5e48daf5
...
...
@@ -16,8 +16,6 @@
#ifndef TDENGINE_VNODESYSTEM_H
#define TDENGINE_VNODESYSTEM_H
#include <stdbool.h>
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
src/system/detail/src/dnodeMgmt.c
浏览文件 @
5e48daf5
...
...
@@ -14,9 +14,8 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <unistd.h>
#include "os.h"
#include "dnodeSystem.h"
#include "taosmsg.h"
...
...
src/system/detail/src/dnodeService.c
浏览文件 @
5e48daf5
...
...
@@ -14,20 +14,8 @@
*/
#define _DEFAULT_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include <unistd.h>
#include <wordexp.h>
#include "os.h"
#include "dnodeSystem.h"
#include "tglobalcfg.h"
...
...
src/system/detail/src/dnodeSystem.c
浏览文件 @
5e48daf5
...
...
@@ -14,11 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "os.h"
#include "mgmt.h"
#include "vnode.h"
...
...
src/system/detail/src/mgmtAcct.c
浏览文件 @
5e48daf5
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include
<arpa/inet.h>
#include
"os.h"
#include "mgmt.h"
#include "tschemautil.h"
...
...
src/system/detail/src/mgmtConn.c
浏览文件 @
5e48daf5
...
...
@@ -14,8 +14,10 @@
*/
#define _DEFAULT_SOURCE
#include "os.h"
#include "mgmt.h"
#include <arpa/inet.h>
#include "taosmsg.h"
#include "tschemautil.h"
...
...
src/system/detail/src/mgmtDnode.c
浏览文件 @
5e48daf5
...
...
@@ -15,9 +15,7 @@
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <endian.h>
#include <stdbool.h>
#include "os.h"
#include "dnodeSystem.h"
#include "mgmt.h"
...
...
src/system/detail/src/mgmtDnodeInt.c
浏览文件 @
5e48daf5
...
...
@@ -14,8 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <endian.h>
#include "os.h"
#include "dnodeSystem.h"
#include "mgmt.h"
...
...
src/system/detail/src/mgmtMeter.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include "os.h"
#include "mgmt.h"
#include "mgmtUtil.h"
...
...
src/system/detail/src/mgmtProfile.c
浏览文件 @
5e48daf5
...
...
@@ -14,8 +14,9 @@
*/
#define _DEFAULT_SOURCE
#include "os.h"
#include "mgmt.h"
#include <arpa/inet.h>
#include "mgmtProfile.h"
#include "taosmsg.h"
#include "tschemautil.h"
...
...
src/system/detail/src/mgmtShell.c
浏览文件 @
5e48daf5
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include
<arpa/inet.h>
#include
"os.h"
#include "dnodeSystem.h"
#include "mgmt.h"
...
...
src/system/detail/src/mgmtSupertableQuery.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <float.h>
#include <math.h>
#include <sys/time.h>
#include "os.h"
#include "mgmt.h"
#include "mgmtUtil.h"
...
...
src/system/detail/src/mgmtSystem.c
浏览文件 @
5e48daf5
...
...
@@ -14,16 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <netinet/in.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include "os.h"
#include "dnodeSystem.h"
#include "mgmt.h"
...
...
src/system/detail/src/mgmtUser.c
浏览文件 @
5e48daf5
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include
<arpa/inet.h>
#include
"os.h"
#include "mgmt.h"
#include "tschemautil.h"
...
...
src/system/detail/src/mgmtUtil.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <sys/time.h>
#include <math.h>
#include <float.h>
#include "os.h"
#include "mgmt.h"
#include "mgmtUtil.h"
...
...
src/system/detail/src/mgmtVgroup.c
浏览文件 @
5e48daf5
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include
<arpa/inet.h>
#include
"os.h"
#include "mgmt.h"
#include "tschemautil.h"
...
...
src/system/detail/src/vnodeCache.c
浏览文件 @
5e48daf5
...
...
@@ -14,9 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <sys/time.h>
#include <unistd.h>
#include "os.h"
#include "taosmsg.h"
#include "vnode.h"
...
...
src/system/detail/src/vnodeCommit.c
浏览文件 @
5e48daf5
...
...
@@ -14,15 +14,7 @@
*/
#define _GNU_SOURCE
/* See feature_test_macros(7) */
#include <fcntl.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "tsdb.h"
#include "vnode.h"
...
...
src/system/detail/src/vnodeFile.c
浏览文件 @
5e48daf5
...
...
@@ -14,15 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <libgen.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "tscompression.h"
#include "tutil.h"
...
...
@@ -216,6 +208,7 @@ int vnodeOpenCommitFiles(SVnodeObj *pVnode, int noTempLast) {
if
(
numOfFiles
>=
pVnode
->
numOfFiles
)
{
// create empty header files backward
filesAdded
=
numOfFiles
-
pVnode
->
numOfFiles
+
1
;
assert
(
filesAdded
<=
pVnode
->
maxFiles
+
2
);
for
(
int
i
=
0
;
i
<
filesAdded
;
++
i
)
{
fileId
=
pVnode
->
fileId
-
pVnode
->
numOfFiles
-
i
;
if
(
vnodeCreateEmptyCompFile
(
vnode
,
fileId
)
<
0
)
...
...
src/system/detail/src/vnodeFileUtil.c
浏览文件 @
5e48daf5
...
...
@@ -14,11 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "os.h"
#include "vnode.h"
...
...
src/system/detail/src/vnodeFilterFunc.c
浏览文件 @
5e48daf5
...
...
@@ -14,11 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <float.h>
#include <math.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "taosmsg.h"
#include "tsqlfunction.h"
...
...
src/system/detail/src/vnodeImport.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "trpc.h"
#include "ttimer.h"
...
...
src/system/detail/src/vnodeMeter.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "os.h"
#include "trpc.h"
#include "tschemautil.h"
...
...
src/system/detail/src/vnodeQueryProcess.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "taosmsg.h"
#include "textbuffer.h"
...
...
src/system/detail/src/vnodeRead.c
浏览文件 @
5e48daf5
...
...
@@ -14,12 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <limits.h>
#include <time.h>
#include <unistd.h>
#include "os.h"
#include "ihash.h"
#include "taosmsg.h"
...
...
src/system/detail/src/vnodeShell.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,8 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <assert.h>
#include <endian.h>
#include <stdint.h>
#include "os.h"
#include "taosmsg.h"
#include "vnode.h"
#include "vnodeShell.h"
...
...
src/system/detail/src/vnodeStore.c
浏览文件 @
5e48daf5
...
...
@@ -14,11 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <dirent.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "dnodeSystem.h"
#include "trpc.h"
...
...
src/system/detail/src/vnodeSystem.c
浏览文件 @
5e48daf5
...
...
@@ -14,15 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <pthread.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <unistd.h>
#include "os.h"
#include "tsdb.h"
#include "tsocket.h"
...
...
src/system/detail/src/vnodeTagMgmt.c
浏览文件 @
5e48daf5
...
...
@@ -14,9 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include "os.h"
#include "tsdb.h"
#include "tlog.h"
...
...
src/system/detail/src/vnodeUtil.c
浏览文件 @
5e48daf5
...
...
@@ -14,10 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "os.h"
#include "tast.h"
#include "tscUtil.h"
...
...
src/util/src/ihash.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
typedef
struct
_str_node_t
{
...
...
src/util/src/tcache.c
浏览文件 @
5e48daf5
...
...
@@ -13,15 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <pthread.h>
#include <string.h>
#include "os.h"
#include "tcache.h"
#include "tlog.h"
...
...
src/util/src/tcompression.c
浏览文件 @
5e48daf5
...
...
@@ -46,12 +46,6 @@
* of the XORed value with informations. If not, record the first corresponding bytes.
*
*/
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "lz4.h"
...
...
src/util/src/textbuffer.c
浏览文件 @
5e48daf5
...
...
@@ -13,17 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include <math.h>
#include <errno.h>
#include "os.h"
#include "taos.h"
#include "taosmsg.h"
...
...
src/util/src/thash.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "tmempool.h"
...
...
src/util/src/thistogram.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <float.h>
#include <math.h>
#include <memory.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "taosmsg.h"
#include "thistogram.h"
...
...
src/util/src/tidpool.c
浏览文件 @
5e48daf5
...
...
@@ -13,10 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "tlog.h"
typedef
struct
{
...
...
src/util/src/tlog.c
浏览文件 @
5e48daf5
...
...
@@ -13,22 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
#include <time.h>
#include "os.h"
#include "tlog.h"
#include "tutil.h"
...
...
src/util/src/tmem.c
浏览文件 @
5e48daf5
...
...
@@ -13,13 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include "os.h"
#include "tlog.h"
extern
int32_t
taosGetTimestampSec
();
...
...
src/util/src/tmodule.c
浏览文件 @
5e48daf5
...
...
@@ -13,12 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include "os.h"
#include "tmodule.h"
#include "tutil.h"
...
...
src/util/src/tsched.c
浏览文件 @
5e48daf5
...
...
@@ -13,14 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <pthread.h>
#include <semaphore.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "tlog.h"
#include "tsched.h"
...
...
src/util/src/tsocket.c
浏览文件 @
5e48daf5
...
...
@@ -13,17 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdarg.h>
#include <sys/types.h>
#include "os.h"
#include "tglobalcfg.h"
#include "tlog.h"
...
...
src/util/src/ttimer.c
浏览文件 @
5e48daf5
...
...
@@ -13,12 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include "os.h"
#include "tlog.h"
#include "tsched.h"
...
...
src/util/src/ttypes.c
浏览文件 @
5e48daf5
...
...
@@ -13,15 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <errno.h>
#include <float.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "taos.h"
#include "tsdb.h"
...
...
src/util/src/tutil.c
浏览文件 @
5e48daf5
...
...
@@ -13,14 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <locale.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#include "os.h"
#ifdef USE_LIBICONV
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录