From ebaf3fee7943d5ca0e50f8425a195963258e7e57 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 23 Mar 2025 12:04:09 +0300 Subject: [PATCH] Add an assertion to prevent sending message to TCP channel when switched to RDMA --- src/client/msgr_send.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/msgr_send.cpp b/src/client/msgr_send.cpp index adf70540..b43d243e 100644 --- a/src/client/msgr_send.cpp +++ b/src/client/msgr_send.cpp @@ -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;