Tuvie commented on code in PR #1967:
URL: https://github.com/apache/incubator-brpc/pull/1967#discussion_r1006397471


##########
src/brpc/rdma/rdma_helper.cpp:
##########
@@ -633,4 +633,19 @@ bool SupportedByRdma(std::string protocol) {
 }  // namespace rdma
 }  // namespace brpc
 
-#endif  // if BRPC_WITH_RDMA
\ No newline at end of file
+#else
+
+#include <stdlib.h>
+#include "butil/logging.h"
+
+namespace brpc {
+namespace rdma {
+void GlobalRdmaInitializeOrDie() {
+    LOG(ERROR) << "brpc is not compiled with rdma. "
+               << "Please refer to doc/en/rdma.md to enable it.";

Review Comment:
   可以,我加一下



-- 
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