Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
733001f6
T
TDengine
项目概览
taosdata
/
TDengine
12 个月 前同步成功
通知
1180
Star
22014
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
733001f6
编写于
5月 09, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-4088
上级
6e97dce1
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
85 addition
and
49 deletion
+85
-49
src/common/inc/tdataformat.h
src/common/inc/tdataformat.h
+1
-4
src/inc/taosdef.h
src/inc/taosdef.h
+0
-1
src/inc/ttype.h
src/inc/ttype.h
+2
-0
src/os/inc/osInc.h
src/os/inc/osInc.h
+2
-2
src/util/src/exception.c
src/util/src/exception.c
+15
-1
src/util/src/tarray.c
src/util/src/tarray.c
+1
-0
src/util/src/tbase64.c
src/util/src/tbase64.c
+12
-16
src/util/src/tbuffer.c
src/util/src/tbuffer.c
+1
-4
src/util/src/tcompare.c
src/util/src/tcompare.c
+16
-0
src/util/src/tcompression.c
src/util/src/tcompression.c
+1
-1
src/util/src/tcrc32c.c
src/util/src/tcrc32c.c
+1
-0
src/util/src/tdes.c
src/util/src/tdes.c
+14
-0
src/util/src/terror.c
src/util/src/terror.c
+2
-5
src/util/src/thashutil.c
src/util/src/thashutil.c
+13
-6
src/util/src/tidpool.c
src/util/src/tidpool.c
+0
-1
src/util/src/tlist.c
src/util/src/tlist.c
+1
-2
src/util/src/tlockfree.c
src/util/src/tlockfree.c
+1
-2
src/util/src/tlosertree.c
src/util/src/tlosertree.c
+1
-1
src/util/src/tmd5.c
src/util/src/tmd5.c
+1
-3
未找到文件。
src/common/inc/tdataformat.h
浏览文件 @
733001f6
...
@@ -15,10 +15,7 @@
...
@@ -15,10 +15,7 @@
#ifndef _TD_DATA_FORMAT_H_
#ifndef _TD_DATA_FORMAT_H_
#define _TD_DATA_FORMAT_H_
#define _TD_DATA_FORMAT_H_
#include <stdint.h>
#include "os.h"
#include <stdlib.h>
#include <string.h>
#include "talgo.h"
#include "talgo.h"
#include "ttype.h"
#include "ttype.h"
#include "tutil.h"
#include "tutil.h"
...
...
src/inc/taosdef.h
浏览文件 @
733001f6
...
@@ -22,7 +22,6 @@ extern "C" {
...
@@ -22,7 +22,6 @@ extern "C" {
#include <stdint.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdbool.h>
#include "osDef.h"
#include "taos.h"
#include "taos.h"
#define TSDB__packed
#define TSDB__packed
...
...
src/inc/ttype.h
浏览文件 @
733001f6
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#include <stdbool.h>
#include <stdint.h>
#include "taosdef.h"
#include "taosdef.h"
// ----------------- For variable data types such as TSDB_DATA_TYPE_BINARY and TSDB_DATA_TYPE_NCHAR
// ----------------- For variable data types such as TSDB_DATA_TYPE_BINARY and TSDB_DATA_TYPE_NCHAR
...
...
src/os/inc/osInc.h
浏览文件 @
733001f6
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#ifndef TDENGINE_OS_
LINUX64
_H
#ifndef TDENGINE_OS_
INC
_H
#define TDENGINE_OS_
LINUX64
_H
#define TDENGINE_OS_
INC
_H
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
...
src/util/src/exception.c
浏览文件 @
733001f6
/*
* 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/>.
*/
#include "os.h"
#include "os.h"
#include "exception.h"
#include "exception.h"
static
threadlocal
SExceptionNode
*
expList
;
static
threadlocal
SExceptionNode
*
expList
;
void
exceptionPushNode
(
SExceptionNode
*
node
)
{
void
exceptionPushNode
(
SExceptionNode
*
node
)
{
...
...
src/util/src/tarray.c
浏览文件 @
733001f6
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "os.h"
#include "tarray.h"
#include "tarray.h"
void
*
taosArrayInit
(
size_t
size
,
size_t
elemSize
)
{
void
*
taosArrayInit
(
size_t
size
,
size_t
elemSize
)
{
...
...
src/util/src/tbase64.c
浏览文件 @
733001f6
/*
*
/*
* Copyright (c) 20
06-2008 Apple Inc. All rights reserved.
* Copyright (c) 20
19 TAOS Data, Inc. <jhtao@taosdata.com>
*
*
*
Licensed under the Apache License, Version 2.0 (the "License");
*
This program is free software: you can use, redistribute, and/or modify
*
you may not use this file except in compliance with the License.
*
it under the terms of the GNU Affero General Public License, version 3
*
You may obtain a copy of the License at
*
or later ("AGPL"), as published by the Free Software Foundation.
*
*
* http://www.apache.org/licenses/LICENSE-2.0
* 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.
*
*
* Unless required by applicable law or agreed to in writing, software
* You should have received a copy of the GNU Affero General Public License
* distributed under the License is distributed on an "AS IS" BASIS,
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
**/
#include <assert.h>
#include "os.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// deprecated this file for bug prone
// deprecated this file for bug prone
// base64 encode
// base64 encode
...
...
src/util/src/tbuffer.c
浏览文件 @
733001f6
...
@@ -14,12 +14,9 @@
...
@@ -14,12 +14,9 @@
*/
*/
#include "os.h"
#include "os.h"
#include <stdlib.h>
#include <memory.h>
#include <assert.h>
#include "tbuffer.h"
#include "tbuffer.h"
#include "exception.h"
#include "exception.h"
#include
<taoserror.h>
#include
"taoserror.h"
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// reader functions
// reader functions
...
...
src/util/src/tcompare.c
浏览文件 @
733001f6
/*
* 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/>.
*/
#include "os.h"
#include "ttype.h"
#include "ttype.h"
#include "tcompare.h"
#include "tcompare.h"
#include "tarray.h"
#include "tarray.h"
...
...
src/util/src/tcompression.c
浏览文件 @
733001f6
...
@@ -47,8 +47,8 @@
...
@@ -47,8 +47,8 @@
*
*
*/
*/
#include "lz4.h"
#include "os.h"
#include "os.h"
#include "lz4.h"
#include "taosdef.h"
#include "taosdef.h"
#include "tscompression.h"
#include "tscompression.h"
#include "tulog.h"
#include "tulog.h"
...
...
src/util/src/tcrc32c.c
浏览文件 @
733001f6
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
misrepresented as being the original software.
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
3. This notice may not be removed or altered from any source distribution.
*/
*/
#ifndef _TD_ARM_
#ifndef _TD_ARM_
#include <nmmintrin.h>
#include <nmmintrin.h>
#endif
#endif
...
...
src/util/src/tdes.c
浏览文件 @
733001f6
/*
* 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/>.
*/
#include "os.h"
#include "os.h"
#include "tkey.h"
#include "tkey.h"
...
...
src/util/src/terror.c
浏览文件 @
733001f6
/*
/*
* Copyright (c) 20
20
TAOS Data, Inc. <jhtao@taosdata.com>
* Copyright (c) 20
19
TAOS Data, Inc. <jhtao@taosdata.com>
*
*
* This program is free software: you can use, redistribute, and/or modify
* 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
* it under the terms of the GNU Affero General Public License, version 3
...
@@ -13,10 +13,7 @@
...
@@ -13,10 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include <stdint.h>
#include "os.h"
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#define TAOS_ERROR_C
#define TAOS_ERROR_C
...
...
src/util/src/thashutil.c
浏览文件 @
733001f6
/**
/*
* MurmurHash3 by Austin Appleby
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
* @ref
* https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp
*
*
* Plese refers to the link above for the complete implementation of
* This program is free software: you can use, redistribute, and/or modify
* MurmurHash algorithm
* 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/>.
*/
*/
#include "os.h"
#include "hashfunc.h"
#include "hashfunc.h"
#include "tutil.h"
#include "tutil.h"
...
...
src/util/src/tidpool.c
浏览文件 @
733001f6
...
@@ -15,7 +15,6 @@
...
@@ -15,7 +15,6 @@
#include "os.h"
#include "os.h"
#include "tulog.h"
#include "tulog.h"
#include <stdbool.h>
typedef
struct
{
typedef
struct
{
int
maxId
;
int
maxId
;
...
...
src/util/src/tlist.c
浏览文件 @
733001f6
...
@@ -12,9 +12,8 @@
...
@@ -12,9 +12,8 @@
* You should have received a copy of the GNU Affero General Public License
* 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/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include <stdlib.h>
#include <string.h>
#include "os.h"
#include "tlist.h"
#include "tlist.h"
SList
*
tdListNew
(
int
eleSize
)
{
SList
*
tdListNew
(
int
eleSize
)
{
...
...
src/util/src/tlockfree.c
浏览文件 @
733001f6
...
@@ -12,9 +12,8 @@
...
@@ -12,9 +12,8 @@
* You should have received a copy of the GNU Affero General Public License
* 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/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
// #define _GNU_SOURCE
// #include <pthread.h>
#include "os.h"
#include "tlockfree.h"
#include "tlockfree.h"
#define TD_RWLATCH_WRITE_FLAG 0x40000000
#define TD_RWLATCH_WRITE_FLAG 0x40000000
...
...
src/util/src/tlosertree.c
浏览文件 @
733001f6
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "tlosertree.h"
#include "os.h"
#include "os.h"
#include "tlosertree.h"
#include "taosmsg.h"
#include "taosmsg.h"
#include "tulog.h"
#include "tulog.h"
...
...
src/util/src/tmd5.c
浏览文件 @
733001f6
...
@@ -33,10 +33,8 @@
...
@@ -33,10 +33,8 @@
***********************************************************************
***********************************************************************
*/
*/
#include "os.h"
#include "tmd5.h"
#include "tmd5.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "taosdef.h"
#include "taosdef.h"
/* forward declaration */
/* forward declaration */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录