]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: CEPH_FEATURE_CHUNKY_SCRUB feature now required
authorDavid Zafman <dzafman@redhat.com>
Fri, 5 Jun 2015 01:47:42 +0000 (18:47 -0700)
committerDavid Zafman <dzafman@redhat.com>
Sat, 20 Jun 2015 00:00:03 +0000 (17:00 -0700)
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 <dzafman@redhat.com>
src/osd/PG.cc

index e0bad7889882ce5f7d39747c34150be149fe4efb..ef660b57828bc247856876f602955ecd7503245e 100644 (file)
@@ -3851,26 +3851,8 @@ void PG::scrub(epoch_t queued, 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; i<acting.size(); i++) {
-      if (acting[i] == pg_whoami.osd)
-       continue;
-      if (acting[i] == CRUSH_ITEM_NONE)
-       continue;
-      ConnectionRef con = osd->get_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);