Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
48fed13a
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看板
未验证
提交
48fed13a
编写于
4月 05, 2020
作者:
S
slguan
提交者:
GitHub
4月 05, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1522 from taosdata/refactor/cluster
refactor code directory
上级
fddd256f
851ebaac
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
61 addition
and
1 deletion
+61
-1
src/dnode/CMakeLists.txt
src/dnode/CMakeLists.txt
+1
-1
src/inc/vnode.h
src/inc/vnode.h
+0
-0
src/mnode/src/mgmtShell.c
src/mnode/src/mgmtShell.c
+1
-0
src/vnode/CMakeLists.txt
src/vnode/CMakeLists.txt
+1
-0
src/vnode/main/CMakeLists.txt
src/vnode/main/CMakeLists.txt
+18
-0
src/vnode/main/inc/vnodeInt.h
src/vnode/main/inc/vnodeInt.h
+0
-0
src/vnode/main/src/vnodeMain.c
src/vnode/main/src/vnodeMain.c
+0
-0
src/vnode/main/src/vnodeWrite.c
src/vnode/main/src/vnodeWrite.c
+0
-0
tests/script/general/table/basic1.sim
tests/script/general/table/basic1.sim
+4
-0
tests/script/general/table/basic2.sim
tests/script/general/table/basic2.sim
+3
-0
tests/script/unique/dnodes/basic1.sim
tests/script/unique/dnodes/basic1.sim
+33
-0
未找到文件。
src/dnode/CMakeLists.txt
浏览文件 @
48fed13a
...
...
@@ -13,7 +13,7 @@ IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
AUX_SOURCE_DIRECTORY
(
src SRC
)
ADD_EXECUTABLE
(
taosd
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
taosd mnode taos_static monitor http tsdb twal
)
TARGET_LINK_LIBRARIES
(
taosd mnode taos_static monitor http tsdb twal
vnode
)
IF
(
TD_ACCOUNT
)
TARGET_LINK_LIBRARIES
(
taosd account
)
...
...
src/
dnode/
inc/vnode.h
→
src/inc/vnode.h
浏览文件 @
48fed13a
文件已移动
src/mnode/src/mgmtShell.c
浏览文件 @
48fed13a
...
...
@@ -136,6 +136,7 @@ static void mgmtProcessMsgFromShell(SRpcMsg *rpcMsg) {
if
(
mgmtCheckRedirect
(
rpcMsg
->
handle
))
{
// rpcSendRedirectRsp(rpcMsg->handle, mgmtGetMnodeIpListForRedirect());
mgmtSendSimpleResp
(
rpcMsg
->
handle
,
TSDB_CODE_NO_MASTER
);
rpcFreeCont
(
rpcMsg
->
pCont
);
return
;
}
...
...
src/vnode/CMakeLists.txt
浏览文件 @
48fed13a
...
...
@@ -3,3 +3,4 @@ PROJECT(TDengine)
ADD_SUBDIRECTORY
(
wal
)
ADD_SUBDIRECTORY
(
tsdb
)
ADD_SUBDIRECTORY
(
main
)
src/vnode/main/CMakeLists.txt
0 → 100644
浏览文件 @
48fed13a
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
IF
((
TD_LINUX_64
)
OR
(
TD_LINUX_32 AND TD_ARM
))
INCLUDE_DIRECTORIES
(
${
TD_OS_DIR
}
/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/util/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/query/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/vnode/tsdb/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/common/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/src/dnode/inc
)
INCLUDE_DIRECTORIES
(
${
TD_ENTERPRISE_DIR
}
/src/inc
)
INCLUDE_DIRECTORIES
(
inc
)
AUX_SOURCE_DIRECTORY
(
src SRC
)
ADD_LIBRARY
(
vnode
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
vnode tsdb
)
ENDIF
()
\ No newline at end of file
src/
dnode
/inc/vnodeInt.h
→
src/
vnode/main
/inc/vnodeInt.h
浏览文件 @
48fed13a
文件已移动
src/
dnode
/src/vnodeMain.c
→
src/
vnode/main
/src/vnodeMain.c
浏览文件 @
48fed13a
文件已移动
src/
dnode
/src/vnodeWrite.c
→
src/
vnode/main
/src/vnodeWrite.c
浏览文件 @
48fed13a
文件已移动
tests/script/general/table/basic1.sim
浏览文件 @
48fed13a
...
...
@@ -69,3 +69,7 @@ if $data21 != 3 then
return -1
endi
sql drop database d1
system sh/exec.sh -n dnode1 -s stop -x SIGINT
tests/script/general/table/basic2.sim
浏览文件 @
48fed13a
...
...
@@ -64,3 +64,6 @@ if $data21 != 3 then
return -1
endi
sql drop database d1
system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
tests/script/unique/dnodes/basic1.sim
0 → 100644
浏览文件 @
48fed13a
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -m 192.168.0.1 -i 192.168.0.1
system sh/deploy.sh -n dnode2 -m 192.168.0.1 -i 192.168.0.2
system sh/exec_up.sh -n dnode1 -s start
system sh/exec_up.sh -n dnode2 -s start
sql connect
print =============== show dnodes
sql show dnodes;
if $rows != 1 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data01 != 192.168.0.1 then
return -1
endi
sql show mnodes;
if $rows != 1 then
return -1
endi
if $data00 != 1 then
return -1
endi
if $data01 != 192.168.0.1 then
return -1
endi
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录