fix limit
This commit is contained in:
parent
bc7857c39f
commit
4b37a1092d
|
@ -855,7 +855,7 @@ static int32_t cliGetConnFromPool(SCliThrd* pThrd, const char* key, SCliConn** p
|
||||||
}
|
}
|
||||||
|
|
||||||
if (QUEUE_IS_EMPTY(&plist->conns)) {
|
if (QUEUE_IS_EMPTY(&plist->conns)) {
|
||||||
if (plist->size >= pInst->connLimitNum) {
|
if (plist->totaSize >= pInst->connLimitNum) {
|
||||||
return TSDB_CODE_RPC_MAX_SESSIONS;
|
return TSDB_CODE_RPC_MAX_SESSIONS;
|
||||||
}
|
}
|
||||||
plist->totaSize += 1;
|
plist->totaSize += 1;
|
||||||
|
|
Loading…
Reference in New Issue