]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_types: add pg_t::get_hobj_{start,end} methods
authorSage Weil <sage@redhat.com>
Mon, 17 Aug 2015 15:52:10 +0000 (11:52 -0400)
committerJohn Spray <john.spray@redhat.com>
Thu, 3 Dec 2015 14:57:38 +0000 (14:57 +0000)
commitfc8ea3f2d6e56da6ca0bed1774a65fe70a065e36
tree8b2a49179b6829b2909edb8d8251628974ea1dbe
parent12efe7f2c9744c0a2bc22b6d844f10d913d7e2c9
osd/osd_types: add pg_t::get_hobj_{start,end} methods

Convenience methods to easily get the bounds of the object range
that are managed by a given PG.  Note that this is a function of
the pool pg_num because otherwise the pg_t id only gives us the
start position.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc
src/osd/osd_types.h