Fix MSG_WAITALL assertion added in the zero-copy patch

This commit is contained in:
Vitaliy Filippov
2025-05-02 17:01:43 +03:00
parent e6e1c5b962
commit 05e59c1b4f
+2 -1
View File
@@ -319,7 +319,8 @@ void osd_messenger_t::handle_send(int result, bool prev, bool more, osd_client_t
}
if (more)
{
assert(done == cl->send_list.size());
auto expected = cl->send_list.size() < IOV_MAX ? cl->send_list.size() : IOV_MAX;
assert(done == expected);
cl->zc_free_list.push_back(NULL); // end marker
}
if (done > 0)