Add an assertion to prevent sending message to TCP channel when switched to RDMA

This commit is contained in:
Vitaliy Filippov
2025-03-23 12:04:09 +03:00
parent 196d28e987
commit ebaf3fee79
+1
View File
@@ -187,6 +187,7 @@ bool osd_messenger_t::try_send(osd_client_t *cl)
{
return true;
}
assert(cl->peer_state != PEER_RDMA);
if (ringloop && !use_sync_send_recv)
{
auto iothread = iothreads.size() ? iothreads[peer_fd % iothreads.size()] : NULL;