diff --git a/source/dnode/mnode/impl/inc/mndGrant.h b/source/dnode/mnode/impl/inc/mndGrant.h index 9c8e853a21ab1a118a97b3574259c4eabbea230f..9435c573f40fa9dddfc95e6c2743d9c2f9aebdec 100644 --- a/source/dnode/mnode/impl/inc/mndGrant.h +++ b/source/dnode/mnode/impl/inc/mndGrant.h @@ -25,7 +25,8 @@ int32_t mndInitGrant(SMnode *pMnode); void mndCleanupGrant(); void grantParseParameter(); -void grantReset(SMnode *pMnode, EGrantType grant, uint64_t value); +void grantReset(EGrantType grant, uint64_t value); +void grantResetNew(SMnode *pMnode, EGrantType grant, uint64_t value); void grantAdd(EGrantType grant, uint64_t value); void grantRestore(EGrantType grant, uint64_t value); diff --git a/source/dnode/mnode/impl/src/mndGrant.c b/source/dnode/mnode/impl/src/mndGrant.c index 1148fd740b40a611c1f8f507c45d2e917345faeb..d216ef3384f154f3b7a5b428825ae40f9299154f 100644 --- a/source/dnode/mnode/impl/src/mndGrant.c +++ b/source/dnode/mnode/impl/src/mndGrant.c @@ -129,7 +129,8 @@ int32_t mndInitGrant(SMnode *pMnode) { void mndCleanupGrant() {} void grantParseParameter() { mError("can't parsed parameter k"); } int32_t grantCheck(EGrantType grant) { return TSDB_CODE_SUCCESS; } -void grantReset(SMnode *pMnode, EGrantType grant, uint64_t value) {} +void grantReset(EGrantType grant, uint64_t value) {} +void grantResetNew(SMnode *pMnode, EGrantType grant, uint64_t value) {} void grantAdd(EGrantType grant, uint64_t value) {} void grantRestore(EGrantType grant, uint64_t value) {} int32_t dmProcessGrantReq(SRpcMsg *pMsg) { return TSDB_CODE_SUCCESS; } diff --git a/source/dnode/mnode/impl/src/mndMain.c b/source/dnode/mnode/impl/src/mndMain.c index 443d70aef92f7582276cc115242176a0f6a06edd..6d39926641827d26b81b34d806b9d5be54bf0a90 100644 --- a/source/dnode/mnode/impl/src/mndMain.c +++ b/source/dnode/mnode/impl/src/mndMain.c @@ -417,7 +417,7 @@ int32_t mndStart(SMnode *pMnode) { mndSetRestore(pMnode, true); } - grantReset(pMnode, TSDB_GRANT_ALL, 0); + grantResetNew(pMnode, TSDB_GRANT_ALL, 0); return mndInitTimer(pMnode); }