]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Bug fix : AsyncConnection: fix wrong scope of data blocks 3630/head
authorFeng He <fenglife@hotmail.com>
Thu, 5 Feb 2015 11:01:37 +0000 (19:01 +0800)
committerFeng He <fenglife@hotmail.com>
Thu, 5 Feb 2015 11:01:37 +0000 (19:01 +0800)
Signed-off-by: Feng He <fenglife@hotmail.com>
src/msg/async/AsyncConnection.cc

index 1d764be211b3c3964f32f7c851aea851abeda9a8..49092585ad3d5d4ad5666faecf8c073ff81c1158 100644 (file)
@@ -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;