refact(cluster): node mgmt
This commit is contained in:
parent
3a26ec4e60
commit
6958f3abfc
|
@ -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(); }
|
||||
void mndGenerateMachineCode() { grantParseParameter(); }
|
Loading…
Reference in New Issue