If extent.length == oi.size, this mean read success and read the whole
object. No need other conditions.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
<< " bytes from obj " << soid << dendl;
// whole object? can we verify the checksum?
- if (result >= 0 &&
- op.extent.offset == 0 && op.extent.length == oi.size &&
- oi.is_data_digest()) {
+ if (op.extent.length == oi.size && oi.is_data_digest()) {
uint32_t crc = osd_op.outdata.crc32c(-1);
if (oi.data_digest != crc) {
osd->clog->error() << info.pgid << std::hex