From: Feng He Date: Thu, 5 Feb 2015 02:09:13 +0000 (+0800) Subject: AsyncConnection: fix wrong scope of data blocks X-Git-Tag: v0.93~94^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3fc9d4e03258684720dda9ba794bc518b02e6e3;p=ceph.git 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 9af029cd4022..1d764be211b3 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, sizeof(msgvec)); + uint64_t size = MIN(left_pbrs, msgvec); left_pbrs -= size; memset(&msg, 0, sizeof(msg)); msg.msg_iovlen = 0;