]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: set iov->iov_len to nread (get)
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 17 Dec 2015 21:23:44 +0000 (16:23 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:53 +0000 (12:06 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/test/librgw_file_aw.cc

index b25af049509264fc83c3e2a95069153260cbddc0..1b3a08370d69132d1576dd96ae78eea457834546 100644 (file)
@@ -233,6 +233,7 @@ TEST(LibRGW, GET_OBJECT) {
     struct iovec *iov = &iovs[ix];
     int ret = rgw_read(fs, object_fh, offset, iovs[ix-2].iov_len, &nread,
                       iov->iov_base);
+    iov->iov_len = nread;
     offset += iov->iov_len;
     ASSERT_EQ(ret, 0);
     ASSERT_EQ(nread, iovs[ix-2].iov_len);