From 3066231865e2fe56344de9db26024ac65e03053d Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 4 Jun 2015 18:47:42 -0700 Subject: [PATCH] osd: CEPH_FEATURE_CHUNKY_SCRUB feature now required Feature present since at least the Dumpling release. A later commit will add it to the osd_required mask Fixes: #11661 Signed-off-by: David Zafman (cherry picked from commit 7a10a7e196efd0f59fa7adb87d0a120655b227d8) --- src/osd/PG.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index df5b34d3f4b5d..49d0af1385fcf 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3818,26 +3818,8 @@ void PG::scrub(ThreadPool::TPHandle &handle) return; } - // when we're starting a scrub, we need to determine which type of scrub to do if (!scrubber.active) { - OSDMapRef curmap = osd->get_osdmap(); assert(backfill_targets.empty()); - for (unsigned i=0; iget_con_osd_cluster(acting[i], get_osdmap()->get_epoch()); - if (!con) - continue; - if (!con->has_feature(CEPH_FEATURE_CHUNKY_SCRUB)) { - dout(20) << "OSD " << acting[i] - << " does not support chunky scrubs, falling back to classic" - << dendl; - assert(0 == "Running incompatible OSD"); - break; - } - } scrubber.deep = state_test(PG_STATE_DEEP_SCRUB); -- 2.39.5