From: Feng He Date: Thu, 5 Feb 2015 11:01:37 +0000 (+0800) Subject: Bug fix : AsyncConnection: fix wrong scope of data blocks X-Git-Tag: v0.93~93^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3630%2Fhead;p=ceph.git Bug fix : AsyncConnection: fix wrong scope of data blocks Signed-off-by: Feng He --- diff --git a/src/msg/async/AsyncConnection.cc b/src/msg/async/AsyncConnection.cc index 1d764be211b3..49092585ad3d 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;