From: Sage Weil Date: Thu, 9 Feb 2017 23:25:41 +0000 (-0500) Subject: osd/OSDMap: is_acting_osd_shard X-Git-Tag: v12.0.1~383^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b5f128ff555d355242fe9e2874c0a5a040661744;p=ceph.git osd/OSDMap: is_acting_osd_shard Signed-off-by: Sage Weil --- diff --git a/src/osd/OSDMap.h b/src/osd/OSDMap.h index 5fc114539eea..b33c7ab748ef 100644 --- a/src/osd/OSDMap.h +++ b/src/osd/OSDMap.h @@ -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. */