Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6c626909
T
TDengine
项目概览
taosdata
/
TDengine
11 个月 前同步成功
通知
1179
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,发现更多精彩内容 >>
提交
6c626909
编写于
11月 23, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix compile errors
上级
24302611
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
10 deletion
+21
-10
include/util/tnote.h
include/util/tnote.h
+3
-3
source/dnode/mgmt/daemon/src/daemon.c
source/dnode/mgmt/daemon/src/daemon.c
+7
-4
source/dnode/mgmt/impl/CMakeLists.txt
source/dnode/mgmt/impl/CMakeLists.txt
+1
-1
source/dnode/mgmt/impl/src/dndInt.c
source/dnode/mgmt/impl/src/dndInt.c
+5
-0
source/dnode/mnode/impl/src/mnode.c
source/dnode/mnode/impl/src/mnode.c
+2
-0
source/util/src/tnote.c
source/util/src/tnote.c
+3
-2
未找到文件。
include/util/tnote.h
浏览文件 @
6c626909
...
...
@@ -38,9 +38,9 @@ extern SNoteObj tsHttpNote;
extern
SNoteObj
tsTscNote
;
extern
SNoteObj
tsInfoNote
;
void
taosInitNotes
();
void
taosNotePrint
(
SNoteObj
*
pNote
,
const
char
*
const
format
,
...);
void
taosNotePrintBuffer
(
SNoteObj
*
pNote
,
char
*
buffer
,
int32_t
len
);
int32_t
taosInitNotes
();
void
taosNotePrint
(
SNoteObj
*
pNote
,
const
char
*
const
format
,
...);
void
taosNotePrintBuffer
(
SNoteObj
*
pNote
,
char
*
buffer
,
int32_t
len
);
#define nPrintHttp(...) \
if (tsHttpEnableRecordSql) { \
...
...
source/dnode/mgmt/daemon/src/daemon.c
浏览文件 @
6c626909
...
...
@@ -16,7 +16,9 @@
#define _DEFAULT_SOURCE
#include "dnode.h"
#include "os.h"
#include "tconfig.h"
#include "tglobal.h"
#include "tnote.h"
#include "ulog.h"
static
struct
{
...
...
@@ -68,7 +70,11 @@ int dmnParseOpts(int argc, char const *argv[]) {
return
0
;
}
void
dmnGenerateGrant
()
{
grantParseParameter
();
}
void
dmnGenerateGrant
()
{
#if 0
grantParseParameter();
#endif
}
void
dmnPrintVersion
()
{
#ifdef TD_ENTERPRISE
...
...
@@ -83,9 +89,6 @@ void dmnPrintVersion() {
}
int
dmnReadConfig
(
const
char
*
path
)
{
taosIgnSIGPIPE
();
taosBlockSIGPIPE
();
taosResolveCRC
();
taosInitGlobalCfg
();
taosReadGlobalLogCfg
();
...
...
source/dnode/mgmt/impl/CMakeLists.txt
浏览文件 @
6c626909
aux_source_directory
(
src DNODE_SRC
)
add_library
(
dnode
${
DNODE_SRC
}
)
add_library
(
dnode
STATIC
${
DNODE_SRC
}
)
target_link_libraries
(
dnode
PUBLIC cjson
...
...
source/dnode/mgmt/impl/src/dndInt.c
浏览文件 @
6c626909
...
...
@@ -21,6 +21,7 @@
#include "sync.h"
#include "tcache.h"
#include "wal.h"
#include "tcrc32c.h"
EStat
dndGetStat
(
SDnode
*
pDnode
)
{
return
pDnode
->
stat
;
}
...
...
@@ -135,6 +136,10 @@ static void dndCleanupEnv(SDnode *pDnode) {
}
SDnode
*
dndInit
(
SDnodeOpt
*
pOptions
)
{
taosIgnSIGPIPE
();
taosBlockSIGPIPE
();
taosResolveCRC
();
SDnode
*
pDnode
=
calloc
(
1
,
sizeof
(
pDnode
));
if
(
pDnode
==
NULL
)
{
dError
(
"failed to create dnode object"
);
...
...
source/dnode/mnode/impl/src/mnode.c
浏览文件 @
6c626909
...
...
@@ -207,6 +207,8 @@ void mnodeCleanupMsg(SMnodeMsg *pMsg) {
taosFreeQitem
(
pMsg
);
}
void
mnodeSendRsp
(
SMnodeMsg
*
pMsg
,
int32_t
code
)
{}
static
void
mnodeProcessRpcMsg
(
SMnodeMsg
*
pMsg
)
{
if
(
!
mnodeIsMaster
())
{
mnodeSendRedirectMsg
(
NULL
,
&
pMsg
->
rpcMsg
,
true
);
...
...
source/util/src/tnote.c
浏览文件 @
6c626909
...
...
@@ -40,7 +40,7 @@ static void taosInitNote(int32_t numOfLines, int32_t maxNotes, SNoteObj *pNote,
taosNotePrint
(
pNote
,
"=================================================="
);
}
void
taosInitNotes
()
{
int32_t
taosInitNotes
()
{
char
name
[
TSDB_FILENAME_LEN
*
2
]
=
{
0
};
#if 0
...
...
@@ -58,7 +58,8 @@ void taosInitNotes() {
snprintf(name, TSDB_FILENAME_LEN * 2, "%s/taosinfo", tsLogDir);
taosInitNote(tsNumOfLogLines, 1, &tsInfoNote, name);
}
#endif
#endif
return
0
;
}
static
bool
taosLockNote
(
int32_t
fd
,
SNoteObj
*
pNote
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录