Add an assertion to prevent sending message to TCP channel when switched to RDMA
This commit is contained in:
@@ -187,6 +187,7 @@ bool osd_messenger_t::try_send(osd_client_t *cl)
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
assert(cl->peer_state != PEER_RDMA);
|
||||||
if (ringloop && !use_sync_send_recv)
|
if (ringloop && !use_sync_send_recv)
|
||||||
{
|
{
|
||||||
auto iothread = iothreads.size() ? iothreads[peer_fd % iothreads.size()] : NULL;
|
auto iothread = iothreads.size() ? iothreads[peer_fd % iothreads.size()] : NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user