fix compile error

This commit is contained in:
Shengliang Guan 2022-03-04 13:41:47 +08:00
parent 6996aabeca
commit 605da57489
1 changed files with 4 additions and 1 deletions

View File

@ -924,4 +924,7 @@ static void mndCancelGetNextQuery(SMnode *pMnode, void *pIter) {
}
}
int32_t mndGetNumOfConnections(SMnode *pMnode) { return taosHashGetSize(pMnode->profileMgmt.cache->pHashTable); }
int32_t mndGetNumOfConnections(SMnode *pMnode) {
SProfileMgmt *pMgmt = &pMnode->profileMgmt;
return taosCacheGetNumOfObj(pMgmt->cache);
}