]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/buffer.cc
update sources to v12.1.3
[ceph.git] / ceph / src / common / buffer.cc
index 4b75b9b631791c5e1e8f01cf393bd292516a1f74..b8e87d1eea3dc16b9908cc163f937d0ffd4ffe3b 100644 (file)
@@ -2382,7 +2382,7 @@ int buffer::list::write_fd(int fd) const
     }
     ++p;
 
-    if (iovlen == IOV_MAX-1 ||
+    if (iovlen == IOV_MAX ||
        p == _buffers.end()) {
       iovec *start = iov;
       int num = iovlen;