yanglimingcn commented on code in PR #3034:
URL: https://github.com/apache/brpc/pull/3034#discussion_r2227908654


##########
src/brpc/rdma/rdma_endpoint.cpp:
##########
@@ -920,10 +924,10 @@ int RdmaEndpoint::SendImm(uint32_t imm) {
     wr.send_flags |= IBV_SEND_SIGNALED;
 
     ibv_send_wr* bad = NULL;
-    if (ibv_post_send(_resource->qp, &wr, &bad) < 0) {
+    if (int err = ibv_post_send(_resource->qp, &wr, &bad)) {

Review Comment:
   这些地方也都改成
   int err = ibv_post_send(_resource->qp, &wr, &bad)
   if (err != 0)
   这样子吧,下边还有,都一并修改一下。



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to