fix limit

This commit is contained in:
yihaoDeng 2024-10-23 17:16:39 +08:00
parent bc7857c39f
commit 4b37a1092d
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ static int32_t cliGetConnFromPool(SCliThrd* pThrd, const char* key, SCliConn** p
}
if (QUEUE_IS_EMPTY(&plist->conns)) {
if (plist->size >= pInst->connLimitNum) {
if (plist->totaSize >= pInst->connLimitNum) {
return TSDB_CODE_RPC_MAX_SESSIONS;
}
plist->totaSize += 1;