]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: implement pg_to_up_acting_osds with primary interface
authorGreg Farnum <greg@inktank.com>
Fri, 20 Dec 2013 21:35:28 +0000 (13:35 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 16 Jan 2014 00:33:05 +0000 (16:33 -0800)
commit9749f30cdf82d3bd0eb2b20b952d31b9dbf016ec
treedc3584fc03b00d005599047049acaadff6177e9e
parent5b699782d115527025875b9a66f94a6ff79212b7
OSDMap: implement pg_to_up_acting_osds with primary interface

Use our pointer calling conventions instead of a reference for the
new version of the function.

Right now we're just setting the primaries equal to the first member
of up and acting (or -1 if none), but very shortly we'll modify our
private OSDMap functions to export them based on the contents of temp_primary.
While in general anybody querying for the mapping information will
need to pay attention to whom the primary is as well, we have lots
of callers who will need real code changes to do so. To serve them,
we keep a version that does not export the primary, but asserts
that the primary matches the first entry in its list.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/osd/OSDMap.h