Skip to content

Commit

Permalink
librados_test_stub: read op should return number of bytes read
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f8a7b50)
  • Loading branch information
Jason Dillaman committed Jul 19, 2015
1 parent 7d9fce3 commit b872882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/librados_test_stub/TestMemIoCtxImpl.cc
Expand Up @@ -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) {
Expand Down

0 comments on commit b872882

Please sign in to comment.