Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/brpc/rdma/rdma_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ bool SupportedByRdma(std::string protocol);

} // namespace rdma
} // namespace brpc
#else
namespace brpc {
namespace rdma {

// Initialize RDMA environment
// Exit if failed
void GlobalRdmaInitializeOrDie();

} // namespace rdma
} // namespace brpc
#endif // if BRPC_WITH_RDMA

#endif // BRPC_RDMA_HELPER_H
2 changes: 1 addition & 1 deletion src/brpc/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ int Socket::OnInputEvent(void* user_data, uint32_t events,
if (FLAGS_usercode_in_coroutine) {
ProcessEvent(p);
#if BRPC_WITH_RDMA
} else if (rdma::FLAGS_rdma_edisp_unsched == false) {
} else if (rdma::FLAGS_rdma_edisp_unsched) {
auto rc = bthread_start_background(&tid, &attr, ProcessEvent, p);
if (rc != 0) {
LOG(FATAL) << "Fail to start ProcessEvent";
Expand Down
Loading