From: Jason Dillaman Date: Sun, 5 Jul 2015 14:47:38 +0000 (-0400) Subject: librados_test_stub: read op should return number of bytes read X-Git-Tag: v0.94.3~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5279%2Fhead;p=ceph.git librados_test_stub: read op should return number of bytes read Signed-off-by: Jason Dillaman (cherry picked from commit f8a7b507983e31399831e802e99429b95386ed41) --- diff --git a/src/test/librados_test_stub/TestMemIoCtxImpl.cc b/src/test/librados_test_stub/TestMemIoCtxImpl.cc index 2e6518a174ef..7116c467afa8 100644 --- a/src/test/librados_test_stub/TestMemIoCtxImpl.cc +++ b/src/test/librados_test_stub/TestMemIoCtxImpl.cc @@ -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) {