]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/buffer: off-by-one error in max iov length blocking 16803/head
authorDan Mick <dan.mick@redhat.com>
Fri, 4 Aug 2017 01:22:47 +0000 (18:22 -0700)
committerDan Mick <dan.mick@redhat.com>
Fri, 4 Aug 2017 01:25:00 +0000 (18:25 -0700)
commit89f85d22c1f9eee34ee5a36f8071137023a56f06
treecc70b5fb37488ac6a5739c4c18e60aecc97fd23f
parentd89af4a3e88922fa9166577e03e3481ade6d2923
common/buffer: off-by-one error in max iov length blocking

The loop in write_fd stops at IOV_MAX-1; it could go to IOV_MAX
and write in more-natural sizes without extra tail writes.

Fixes: http://tracker.ceph.com/issues/20907
Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/common/buffer.cc