From 42553adbc4f1d9f7b375e31e3db2ba9827813c46 Mon Sep 17 00:00:00 2001 From: dongning12 Date: Thu, 23 Jan 2025 20:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bugfix=E3=80=91RDMA=E7=94=B3=E8=AF=B7b?= =?UTF-8?q?uffer=E9=80=BB=E8=BE=91=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=8E=9F?= =?UTF-8?q?=E5=85=88=E9=80=BB=E8=BE=91=EF=BC=9A=E5=8F=AA=E5=89=A9=E4=B8=8B?= =?UTF-8?q?1/10=E4=B8=8D=E5=86=8D=E5=85=81=E8=AE=B8=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cm_mes/mes_msg_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cm_mes/mes_msg_pool.c b/src/cm_mes/mes_msg_pool.c index 56bf98e..2c60adc 100644 --- a/src/cm_mes/mes_msg_pool.c +++ b/src/cm_mes/mes_msg_pool.c @@ -905,7 +905,7 @@ static mes_buffer_item_t* mes_get_buf_item_from_shared_pool(mes_msg_buffer_pool_ uint32 buf_count = 0; if (enable_flow_control) { buf_count = queue->count; - if (buf_count > 0 && queue->init_count / buf_count <= RECV_MSG_POOL_FC_THRESHOLD) { + if ((buf_count == 0) || (buf_count > 0 && queue->init_count / buf_count > RECV_MSG_POOL_FC_THRESHOLD)) { return NULL; } } -- Gitee