diff --git a/include/dnode/mnode/mnode.h b/include/dnode/mnode/mnode.h index 1d5ed1b6d2d3c53b56d08a9c783bfe4996f662e9..9e5f8a4ddd213434de9b4f162d777a529a3796c2 100644 --- a/include/dnode/mnode/mnode.h +++ b/include/dnode/mnode/mnode.h @@ -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 diff --git a/source/dnode/mgmt/exe/dmMain.c b/source/dnode/mgmt/exe/dmMain.c index 7e32a2f0930ba25b6468b67f4f41405494d5ba07..3f5c22dd8488870cca64b1c831d1a4d3a7cf6b1a 100644 --- a/source/dnode/mgmt/exe/dmMain.c +++ b/source/dnode/mgmt/exe/dmMain.c @@ -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 diff --git a/source/dnode/mgmt/interface/inc/dmDef.h b/source/dnode/mgmt/interface/inc/dmDef.h index 594eb2219543c189c2371d1bc16b30a287177dff..c0c33570dbff4bc0d8ace274c5d0801261a23825 100644 --- a/source/dnode/mgmt/interface/inc/dmDef.h +++ b/source/dnode/mgmt/interface/inc/dmDef.h @@ -36,6 +36,7 @@ #include "tworker.h" #include "dnode.h" +#include "mnode.h" #include "monitor.h" #ifdef __cplusplus diff --git a/source/dnode/mnode/impl/inc/mndGrant.h b/source/dnode/mnode/impl/inc/mndGrant.h index a2ff5ea6ce0068ad73192e491367de926a552ea7..ad3dc7f79d2d9925e223880bde05560f1587fb11 100644 --- a/source/dnode/mnode/impl/inc/mndGrant.h +++ b/source/dnode/mnode/impl/inc/mndGrant.h @@ -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 diff --git a/source/dnode/mnode/impl/src/mndGrant.c b/source/dnode/mnode/impl/src/mndGrant.c index c97d4dd8074a855129cf945b613743437e5cc1a3..99c25299ff0487e306b609b02d754418d0cf5e63 100644 --- a/source/dnode/mnode/impl/src/mndGrant.c +++ b/source/dnode/mnode/impl/src/mndGrant.c @@ -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