feat: support uniq grant
This commit is contained in:
parent
41072348b9
commit
18ece50f86
|
@ -821,6 +821,7 @@ typedef struct {
|
||||||
int8_t nActives;
|
int8_t nActives;
|
||||||
int64_t createTime;
|
int64_t createTime;
|
||||||
int64_t updateTime;
|
int64_t updateTime;
|
||||||
|
int64_t upgradeTime;
|
||||||
SGrantState states[GRANT_STATE_NUM];
|
SGrantState states[GRANT_STATE_NUM];
|
||||||
SGrantActive actives[GRANT_ACTIVE_NUM];
|
SGrantActive actives[GRANT_ACTIVE_NUM];
|
||||||
char* active;
|
char* active;
|
||||||
|
|
|
@ -75,7 +75,7 @@ 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; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue