From 3fba9ac104e01f45c6e04c06947123a2442326ca Mon Sep 17 00:00:00 2001 From: Feng He Date: Thu, 5 Feb 2015 19:01:37 +0800 Subject: [PATCH] Bug fix : AsyncConnection: fix wrong scope of data blocks Signed-off-by: Feng He --- src/msg/async/AsyncConnection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 1d764be211b3c..49092585ad3d5 100644 --- a/src/msg/async/AsyncConnection.cc +++ b/src/msg/async/AsyncConnection.cc @@ -313,7 +313,7 @@ int AsyncConnection::_try_send(bufferlist send_bl, bool send) uint64_t left_pbrs = outcoming_bl.buffers().size(); while (left_pbrs) { struct msghdr msg; - uint64_t size = MIN(left_pbrs, msgvec); + uint64_t size = MIN(left_pbrs, IOV_MAX); left_pbrs -= size; memset(&msg, 0, sizeof(msg)); msg.msg_iovlen = 0; -- 2.47.3