mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
test/osd/: verify length of buffer returned in read
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
0885880b30
commit
4d56e3c831
@ -170,5 +170,11 @@ bool ObjectDesc::check(bufferlist &to_check) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
uint64_t size = layers.empty() ? 0 :
|
||||
most_recent_gen()->get_length(most_recent());
|
||||
if (pos != size) {
|
||||
std::cout << "only read " << pos << " out of size " << size << std::endl;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user