]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap: is_acting_osd_shard
authorSage Weil <sage@redhat.com>
Thu, 9 Feb 2017 23:25:41 +0000 (18:25 -0500)
committerSage Weil <sage@redhat.com>
Tue, 14 Feb 2017 04:03:51 +0000 (23:03 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSDMap.h

index 5fc114539eea7cec15c142393a674c55684ab472..b33c7ab748efa72119ef3e81de169b1b2b14a5d3 100644 (file)
@@ -786,6 +786,9 @@ public:
       return false;
     return acting[shard] == osd;
   }
+  bool is_acting_osd_shard(spg_t pgid, int osd) const {
+    return is_acting_osd_shard(pgid.pgid, osd, pgid.shard);
+  }
 
 
   /* what replica # is a given osd? 0 primary, -1 for none. */