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

This commit is contained in:
yihaoDeng 2024-10-11 16:46:05 +08:00
parent 514b04a6bd
commit 5eaa6f34fe
1 changed files with 3 additions and 3 deletions

View File

@ -3741,10 +3741,10 @@ static SCliConn* getConnFromHeapCache(SHashObj* pConnHeapCache, char* key) {
tDebug("failed to get conn from heap cache for key:%s", key);
return NULL;
} else {
if (pHeap->heap->nelts >= 16) {
balanceConnHeapCache(pConnHeapCache, pConn);
}
if (shouldSWitchToOtherConn(pConn, key)) {
if (pHeap->heap->nelts >= 16) {
balanceConnHeapCache(pConnHeapCache, pConn);
}
logConnMissHit(pConn);
return NULL;
}