From 794702df12f83249176c35ab8c926c1d52d6c50f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 31 Aug 2017 18:06:40 -0400 Subject: [PATCH] osd/PrimaryLogPG: remove some snapdir-specific head_exists cases We don't care about these any more. Signed-off-by: Sage Weil --- src/osd/PrimaryLogPG.cc | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 08cd6aa530a..aa9527ddf1d 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -13635,23 +13635,6 @@ void PrimaryLogPG::scrub_snapshot_metadata( head_error.set_snapset_mismatch(); } } - - if (soid.is_head() && !snapset->head_exists) { - osd->clog->error() << mode << " " << info.pgid << " " << soid - << " snapset.head_exists=false, but head exists"; - ++scrubber.shallow_errors; - head_error.set_head_mismatch(); - // Fix head_exists locally so is_legacy() returns correctly - snapset->head_exists = true; - } - if (soid.is_snapdir() && snapset->head_exists) { - osd->clog->error() << mode << " " << info.pgid << " " << soid - << " snapset.head_exists=true, but snapdir exists"; - ++scrubber.shallow_errors; - head_error.set_head_mismatch(); - // For symmetry fix this too, but probably doesn't matter - snapset->head_exists = false; - } } } else { assert(soid.is_snap()); -- 2.39.5