Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
775da462
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看板
提交
775da462
编写于
10月 28, 2021
作者:
L
Liu Jicong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add tq files, fix cmake file
上级
82523908
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
96 addition
and
14 deletion
+96
-14
include/server/vnode/tq/tq.h
include/server/vnode/tq/tq.h
+9
-8
source/libs/wal/CMakeLists.txt
source/libs/wal/CMakeLists.txt
+2
-2
source/server/vnode/meta/src/metaMain.c
source/server/vnode/meta/src/metaMain.c
+1
-0
source/server/vnode/tq/CMakeLists.txt
source/server/vnode/tq/CMakeLists.txt
+4
-3
source/server/vnode/tq/inc/tqCommit.h
source/server/vnode/tq/inc/tqCommit.h
+14
-0
source/server/vnode/tq/inc/tqInt.h
source/server/vnode/tq/inc/tqInt.h
+0
-1
source/server/vnode/tq/inc/tqMetaStore.h
source/server/vnode/tq/inc/tqMetaStore.h
+38
-0
source/server/vnode/tq/src/tqCommit.c
source/server/vnode/tq/src/tqCommit.c
+14
-0
source/server/vnode/tq/src/tqMetaStore.c
source/server/vnode/tq/src/tqMetaStore.c
+14
-0
未找到文件。
include/server/vnode/tq/tq.h
浏览文件 @
775da462
...
...
@@ -17,6 +17,7 @@
#define _TD_TQ_H_
#include "os.h"
#include "tutil.h"
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -79,14 +80,14 @@ typedef struct TmqConsumeRsp {
typedef
struct
TmqSubscribeReq
{
TmqMsgHead
head
;
int
64_t
topicLen
;
char
topic
[];
int
32_t
topicNum
;
int64_t
topic
[];
}
TmqSubscribeReq
;
typedef
struct
tmqSubscribeRsp
{
TmqMsgHead
head
;
int64_t
vgId
;
char
ep
[];
//TSDB_EP_LEN
char
ep
[
TSDB_EP_LEN
];
//TSDB_EP_LEN
}
TmqSubscribeRsp
;
typedef
struct
TmqHeartbeatReq
{
...
...
@@ -98,17 +99,17 @@ typedef struct TmqHeartbeatRsp {
}
TmqHeartbeatRsp
;
typedef
struct
TqTopicVhandle
{
//name
//
int64_t
topicId
;
//executor for filter
//
void
*
filterExec
;
//callback for mnode
//
//trigger when vnode list associated topic change
void
*
(
*
mCallback
)(
void
*
,
void
*
);
}
TqTopicVhandle
;
typedef
struct
STQ
{
//the collection of group handle
//the handle of kvstore
}
STQ
;
#define TQ_BUFFER_SIZE 8
...
...
source/libs/wal/CMakeLists.txt
浏览文件 @
775da462
...
...
@@ -4,9 +4,9 @@ target_include_directories(
wal
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/wal"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_SOURCE_DIR
}
/include/os"
)
target_link_libraries
(
os
wal
PUBLIC os
)
source/server/vnode/meta/src/metaMain.c
浏览文件 @
775da462
...
...
@@ -64,6 +64,7 @@ SMeta *metaOpen(SMetaOpts *pMetaOpts) {
// TODO: need to figure out how to persist the START UID
tableUidGeneratorInit
(
&
(
pMeta
->
uidGenerator
),
IVLD_TB_UID
);
return
pMeta
;
}
void
metaClose
(
SMeta
*
pMeta
)
{
...
...
source/server/vnode/tq/CMakeLists.txt
浏览文件 @
775da462
...
...
@@ -3,11 +3,12 @@ add_library(tq ${TQ_SRC})
target_include_directories
(
tq
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/server/vnode/tq"
PUBLIC
"
${
CMAKE_SOURCE_DIR
}
/include/libs/wal"
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
PRIVATE
"
${
CMAKE_SOURCE_DIR
}
/include/os"
)
target_link_libraries
(
wal
tq
PUBLIC wal
PUBLIC os
PUBLIC util
)
source/server/vnode/tq/inc/tqCommit.h
0 → 100644
浏览文件 @
775da462
/*
* 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/>.
*/
source/server/vnode/tq/inc/tqInt.h
浏览文件 @
775da462
...
...
@@ -18,7 +18,6 @@
#include "tq.h"
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
source/server/vnode/tq/inc/tqMetaStore.h
0 → 100644
浏览文件 @
775da462
/*
* 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 _TQ_META_STORE_H_
#define _TQ_META_STORE_H_
#include "os.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
TqKvHandle
{
int64_t
key
;
int64_t
offset
;
void
*
valueInUse
;
void
*
valueInTxn
;
//serializer
}
TqKvHandle
;
#ifdef __cplusplus
}
#endif
#endif
/* ifndef _TQ_META_STORE_H_ */
source/server/vnode/tq/src/tqCommit.c
0 → 100644
浏览文件 @
775da462
/*
* 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/>.
*/
source/server/vnode/tq/src/tqMetaStore.c
0 → 100644
浏览文件 @
775da462
/*
* 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/>.
*/
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录