FORCE = 2,
} update = NO;
+ if (auth_object.digest_present && auth_object.omap_digest_present &&
+ (!auth_oi.is_data_digest() || !auth_oi.is_omap_digest())) {
+ dout(20) << __func__ << " missing digest on " << *k << dendl;
+ update = MAYBE;
+ }
+ if (g_conf->osd_debug_scrub_chance_rewrite_digest &&
+ (((unsigned)rand() % 100) >
+ g_conf->osd_debug_scrub_chance_rewrite_digest)) {
+ dout(20) << __func__ << " randomly updating digest on " << *k << dendl;
+ update = MAYBE;
+ }
+
// recorded digest != actual digest?
if (auth_oi.is_data_digest() && auth_object.digest_present &&
auth_oi.data_digest != auth_object.digest) {
update = FORCE;
}
- if (auth_object.digest_present && auth_object.omap_digest_present &&
- (!auth_oi.is_data_digest() || !auth_oi.is_omap_digest())) {
- dout(20) << __func__ << " missing digest on " << *k << dendl;
- update = MAYBE;
- }
- if (g_conf->osd_debug_scrub_chance_rewrite_digest &&
- (((unsigned)rand() % 100) >
- g_conf->osd_debug_scrub_chance_rewrite_digest)) {
- dout(20) << __func__ << " randomly updating digest on " << *k << dendl;
- update = MAYBE;
- }
if (update != NO) {
utime_t age = now - auth_oi.local_mtime;
if (update == FORCE ||