yanglimingcn commented on code in PR #3034: URL: https://github.com/apache/brpc/pull/3034#discussion_r2238890257
########## src/brpc/rdma/rdma_endpoint.cpp: ########## @@ -1328,7 +1342,7 @@ static const int MAX_CQ_EVENTS = 128; int RdmaEndpoint::GetAndAckEvents() { int events = 0; void* context = NULL; while (1) { - if (IbvGetCqEvent(_resource->comp_channel, &_resource->cq, &context) < 0) { + if (IbvGetCqEvent(_resource->comp_channel, &_resource->cq, &context) != 0) { Review Comment: 这块需要设置errno吗?因为我看下面有个errno的校验。 -- 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