Merge remote-tracking branch 'origin/3.0' into enh/opt-transport

This commit is contained in:
yihaoDeng 2024-10-11 17:30:26 +08:00
parent 3b0d342793
commit 2ca458fa30
1 changed files with 3 additions and 2 deletions

View File

@ -3743,8 +3743,9 @@ static SCliConn* getConnFromHeapCache(SHashObj* pConnHeapCache, char* key) {
return NULL;
} else {
if (shouldSWitchToOtherConn(pConn, key)) {
if (pHeap->heap->nelts >= 8) {
balanceConnHeapCache(pConnHeapCache, pConn);
code = balanceConnHeapCache(pConnHeapCache, pConn);
if (code != 0) {
tDebug("failed to balance conn heap cache for key:%s", key);
}
logConnMissHit(pConn);
return NULL;