]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados_test_stub: read op should return number of bytes read 5145/head
authorJason Dillaman <dillaman@redhat.com>
Sun, 5 Jul 2015 14:47:38 +0000 (10:47 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 5 Jul 2015 14:47:38 +0000 (10:47 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/test/librados_test_stub/TestMemIoCtxImpl.cc

index eda996f9d079b761fafab1c462e8869355223e15..a5b27cd3d2227e487a0aa3fe98bfd1316889f58c 100644 (file)
@@ -242,7 +242,7 @@ int TestMemIoCtxImpl::read(const std::string& oid, size_t len, uint64_t off,
     bit.substr_of(file->data, off, len);
     append_clone(bit, bl);
   }
-  return 0;
+  return len;
 }
 
 int TestMemIoCtxImpl::remove(const std::string& oid) {