From 18ece50f86f75f49288692bac791f42e0f5280fe Mon Sep 17 00:00:00 2001 From: kailixu Date: Wed, 31 Jan 2024 10:02:44 +0800 Subject: [PATCH] feat: support uniq grant --- source/dnode/mnode/impl/inc/mndDef.h | 1 + source/dnode/mnode/impl/src/mndGrant.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dnode/mnode/impl/inc/mndDef.h b/source/dnode/mnode/impl/inc/mndDef.h index c5ac124eb5..fb768ebd72 100644 --- a/source/dnode/mnode/impl/inc/mndDef.h +++ b/source/dnode/mnode/impl/inc/mndDef.h @@ -821,6 +821,7 @@ typedef struct { int8_t nActives; int64_t createTime; int64_t updateTime; + int64_t upgradeTime; SGrantState states[GRANT_STATE_NUM]; SGrantActive actives[GRANT_ACTIVE_NUM]; char* active; diff --git a/source/dnode/mnode/impl/src/mndGrant.c b/source/dnode/mnode/impl/src/mndGrant.c index 1b87170fa8..07a3618b8c 100644 --- a/source/dnode/mnode/impl/src/mndGrant.c +++ b/source/dnode/mnode/impl/src/mndGrant.c @@ -75,7 +75,7 @@ void grantParseParameter() { mError("can't parsed parameter k"); } void grantReset(SMnode *pMnode, EGrantType grant, uint64_t value) {} void grantAdd(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 dmProcessGrantNotify(void *pInfo, SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; }