提交 6958f3ab 编写于 作者: S Shengliang Guan

refact(cluster): node mgmt

上级 3a26ec4e
......@@ -103,6 +103,12 @@ int32_t mndRetriveAuth(SMnode *pMnode, char *user, char *spi, char *encrypt, cha
*/
int32_t mndProcessMsg(SNodeMsg *pMsg);
/**
* @brief Generate machine code
*
*/
void mndGenerateMachineCode();
#ifdef __cplusplus
}
#endif
......
......@@ -16,7 +16,6 @@
#define _DEFAULT_SOURCE
#include "dmImp.h"
#include "tconfig.h"
#include "mndGrant.h"
static struct {
bool dumpConfig;
......@@ -90,7 +89,7 @@ static int32_t dmParseArgs(int32_t argc, char const *argv[]) {
return 0;
}
static void dmGenerateGrant() { parseGrantParameter(); }
static void dmGenerateGrant() { mndGenerateMachineCode(); }
static void dmPrintVersion() {
#ifdef TD_ENTERPRISE
......
......@@ -36,6 +36,7 @@
#include "tworker.h"
#include "dnode.h"
#include "mnode.h"
#include "monitor.h"
#ifdef __cplusplus
......
......@@ -44,7 +44,6 @@ void grantReset(EGrantType grant, uint64_t value);
void grantAdd(EGrantType grant, uint64_t value);
void grantRestore(EGrantType grant, uint64_t value);
void parseGrantParameter();
#ifdef __cplusplus
}
#endif
......
......@@ -30,4 +30,4 @@ void grantRestore(EGrantType grant, uint64_t value) {}
#endif
void parseGrantParameter() { parseGrantParameter(); }
\ No newline at end of file
void mndGenerateMachineCode() { grantParseParameter(); }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册