From 66f3ed902060b961ee33e6af74d66fefaf089826 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Sat, 16 Jul 2022 15:06:20 +0800 Subject: [PATCH] other: make CI pass --- source/dnode/mnode/impl/inc/mndGrant.h | 3 ++- source/dnode/mnode/impl/src/mndGrant.c | 3 ++- source/dnode/mnode/impl/src/mndMain.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/dnode/mnode/impl/inc/mndGrant.h b/source/dnode/mnode/impl/inc/mndGrant.h index 9c8e853a21..9435c573f4 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 1148fd740b..d216ef3384 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 443d70aef9..6d39926641 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); }