refactor: cmake files

This commit is contained in:
Simon Guan 2025-03-06 13:49:31 +08:00
parent 75faea75c0
commit e321a3be12
3 changed files with 12 additions and 15 deletions

View File

@ -1,6 +1,3 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "uv.h" #include "uv.h"
#include "fnLog.h" #include "fnLog.h"
@ -218,4 +215,4 @@ int main(int argc, char *argv[]) {
fnError("failed to close udfc"); fnError("failed to close udfc");
return -1; return -1;
} }
} }

View File

@ -91,19 +91,19 @@ endi
if $data[0][4] == leader then if $data[0][4] == leader then
if $data[0][7] == follower then if $data[0][7] == follower then
if $data[0][10] == follower then if $data[0][10] == follower then
print ---- vgroup $data[0][0] leader locate on dnode $data[0][3] print ---- vgroup $data[0][0] leader locate on dnode $data[0][4]
endi endi
endi endi
elif $data[0][6] == leader then elif $data[0][7] == leader then
if $data[0][7] == follower then if $data[0][10] == follower then
if $data[0][10] == follower then if $data[0][4] == follower then
print ---- vgroup $data[0][0] leader locate on dnode $data[0][5] print ---- vgroup $data[0][0] leader locate on dnode $data[0][7]
endi endi
endi endi
elif $data[0][10] == leader then elif $data[0][10] == leader then
if $data[0][4] == follower then if $data[0][4] == follower then
if $data[0][7] == follower then if $data[0][7] == follower then
print ---- vgroup $data[0][0] leader locate on dnode $data[0][7] print ---- vgroup $data[0][0] leader locate on dnode $data[0][10]
endi endi
endi endi
else else
@ -461,7 +461,4 @@ endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
system sh/exec.sh -n dnode2 -s stop -x SIGINT system sh/exec.sh -n dnode2 -s stop -x SIGINT
system sh/exec.sh -n dnode3 -s stop -x SIGINT system sh/exec.sh -n dnode3 -s stop -x SIGINT
system sh/exec.sh -n dnode4 -s stop -x SIGINT system sh/exec.sh -n dnode4 -s stop -x SIGINT

View File

@ -1,6 +1,9 @@
# ADD_SUBDIRECTORY(examples/c) # ADD_SUBDIRECTORY(examples/c)
ADD_SUBDIRECTORY(tsim) ADD_SUBDIRECTORY(tsim)
ADD_SUBDIRECTORY(test/c)
IF(${BUILD_TEST})
ADD_SUBDIRECTORY(test/c)
ENDIF(${BUILD_TEST})
# ADD_SUBDIRECTORY(comparisonTest/tdengine) # ADD_SUBDIRECTORY(comparisonTest/tdengine)
IF(NOT "${TSZ_ENABLED}" MATCHES "false") IF(NOT "${TSZ_ENABLED}" MATCHES "false")