]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: add primary out params to _pg_to_osds and _raw_to_up_osds
authorGreg Farnum <greg@inktank.com>
Fri, 20 Dec 2013 22:43:03 +0000 (14:43 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 16 Jan 2014 00:33:07 +0000 (16:33 -0800)
commit12122b11c7f79df90973d3f784b3f9d8f8b07c3d
tree0fa0e9c46f2aa3a1a9d1abe21e87de6baf7f1d6a
parent0c3050932b6f39a65ae24b995efc5e36ff2fc917
OSDMap: add primary out params to _pg_to_osds and _raw_to_up_osds

Switch to use pointers for the out parameters instead of references.

These functions are still just pointing at the front of the generated
lists for the "primary" params, but now that all their callers respect
these outputs we can add programmatic leader assignment with just these
two functions.

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