From a3fc9d4e03258684720dda9ba794bc518b02e6e3 Mon Sep 17 00:00:00 2001 From: Feng He Date: Thu, 5 Feb 2015 10:09:13 +0800 Subject: [PATCH] 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 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; -- 2.47.3