]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: skip pg_whoami.osd, not pg_whoami.shard in scrub feature check 1307/head
authorSamuel Just <sam.just@inktank.com>
Mon, 24 Feb 2014 00:02:43 +0000 (16:02 -0800)
committerSamuel Just <sam.just@inktank.com>
Mon, 24 Feb 2014 00:20:00 +0000 (16:20 -0800)
Caused by typo in 68184d4574cd507ab3a065693e392917b98e16ec.

Fixes: #7517
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 164dc3ad4240f4c1a87cdaacb10e925586b904bf..f212425a6a3941f8a270c2de5b559770e9f2a950 100644 (file)
@@ -3595,7 +3595,7 @@ void PG::scrub(ThreadPool::TPHandle &handle)
     scrubber.is_chunky = true;
     assert(backfill_targets.empty());
     for (unsigned i=0; i<acting.size(); i++) {
-      if (acting[i] == pg_whoami.shard)
+      if (acting[i] == pg_whoami.osd)
        continue;
       if (acting[i] == CRUSH_ITEM_NONE)
        continue;