]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados_test_stub: read op should return number of bytes read 5279/head
authorJason Dillaman <dillaman@redhat.com>
Sun, 5 Jul 2015 14:47:38 +0000 (10:47 -0400)
committerJason Dillaman <dillaman@redhat.com>
Sun, 19 Jul 2015 17:44:16 +0000 (13:44 -0400)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f8a7b507983e31399831e802e99429b95386ed41)

src/test/librados_test_stub/TestMemIoCtxImpl.cc

index 2e6518a174efe85b79854732a4c927471b1c61ae..7116c467afa8dc25d3171833d5dddac7ff7cfcd3 100644 (file)
@@ -241,7 +241,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) {