Merge pull request #24717 from taosdata/feat/TD-27463-3.0a
feat: support uniq grant
This commit is contained in:
commit
2bfdc88e21
|
@ -75,17 +75,15 @@ void grantParseParameter() { mError("can't parsed parameter k"); }
|
||||||
void grantReset(SMnode *pMnode, EGrantType grant, uint64_t value) {}
|
void grantReset(SMnode *pMnode, EGrantType grant, uint64_t value) {}
|
||||||
void grantAdd(EGrantType grant, uint64_t value) {}
|
void grantAdd(EGrantType grant, uint64_t value) {}
|
||||||
void grantRestore(EGrantType grant, uint64_t value) {}
|
void grantRestore(EGrantType grant, uint64_t value) {}
|
||||||
// char *tGetMachineId() { return NULL; };
|
char *tGetMachineId() { return NULL; };
|
||||||
int32_t dmProcessGrantReq(void *pInfo, SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; }
|
int32_t dmProcessGrantReq(void *pInfo, SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; }
|
||||||
int32_t dmProcessGrantNotify(void *pInfo, SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; }
|
int32_t dmProcessGrantNotify(void *pInfo, SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; }
|
||||||
|
int32_t mndProcessConfigGrantReq(SMnode *pMnode, SRpcMsg *pReq, SMCfgClusterReq *pCfg) { return 0; }
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
void mndGenerateMachineCode() { grantParseParameter(); }
|
|
||||||
|
|
||||||
#ifndef TD_UNIQ_GRANT
|
#ifndef TD_UNIQ_GRANT
|
||||||
#ifdef TD_ENTERPRISE
|
char *tGetMachineId() { return NULL; };
|
||||||
int32_t mndProcessConfigGrantReq(SMnode *pMnode, SRpcMsg *pReq, SMCfgClusterReq *pCfg) { return 0; }
|
int32_t mndProcessConfigGrantReq(SMnode *pMnode, SRpcMsg *pReq, SMCfgClusterReq *pCfg) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
char *tGetMachineId() { return NULL; };
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void mndGenerateMachineCode() { grantParseParameter(); }
|
Loading…
Reference in New Issue