{
dout(10) << __func__ << " " << poid << " pos " << pos << dendl;
int r;
- bool skip_data_digest = store->has_builtin_csum() &&
- g_conf->osd_skip_data_digest;
uint32_t fadvise_flags = CEPH_OSD_OP_FLAG_FADVISE_SEQUENTIAL |
CEPH_OSD_OP_FLAG_FADVISE_DONTNEED;
o.read_error = true;
return 0;
}
- if (r > 0 && !skip_data_digest) {
+ if (r > 0) {
pos.data_hash << bl;
}
pos.data_pos += r;
return 0;
}
- if (!skip_data_digest &&
- hinfo->get_chunk_hash(get_parent()->whoami_shard().shard) !=
+ if (hinfo->get_chunk_hash(get_parent()->whoami_shard().shard) !=
pos.data_hash.digest()) {
dout(0) << "_scan_list " << poid << " got incorrect hash on read 0x"
<< std::hex << pos.data_hash.digest() << " != expected 0x"
uint32_t fadvise_flags = CEPH_OSD_OP_FLAG_FADVISE_SEQUENTIAL |
CEPH_OSD_OP_FLAG_FADVISE_DONTNEED;
- bool skip_data_digest = store->has_builtin_csum() &&
- g_conf->osd_skip_data_digest;
-
utime_t sleeptime;
sleeptime.set_from_double(cct->_conf->osd_debug_deep_scrub_sleep);
if (sleeptime != utime_t()) {
o.read_error = true;
return 0;
}
- if (r > 0 && !skip_data_digest) {
+ if (r > 0) {
pos.data_hash << bl;
}
pos.data_pos += r;
}
// done with bytes
pos.data_pos = -1;
- if (!skip_data_digest) {
- o.digest = pos.data_hash.digest();
- o.digest_present = true;
- }
+ o.digest = pos.data_hash.digest();
+ o.digest_present = true;
dout(20) << __func__ << " " << poid << " done with data, digest 0x"
<< std::hex << o.digest << std::dec << dendl;
}