refact(cluster): node mgmt

This commit is contained in:
Shengliang Guan 2022-04-14 13:44:40 +08:00
parent 3a26ec4e60
commit 6958f3abfc
5 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -36,6 +36,7 @@
#include "tworker.h"
#include "dnode.h"
#include "mnode.h"
#include "monitor.h"
#ifdef __cplusplus

View File

@ -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

View File

@ -30,4 +30,4 @@ void grantRestore(EGrantType grant, uint64_t value) {}
#endif
void parseGrantParameter() { parseGrantParameter(); }
void mndGenerateMachineCode() { grantParseParameter(); }