]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: unify the pg_to_acting_osds and pg_to_up_acting_osds implementations
authorGreg Farnum <greg@inktank.com>
Fri, 13 Dec 2013 21:55:31 +0000 (13:55 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 16 Jan 2014 00:33:05 +0000 (16:33 -0800)
commit69a2ec27f060ded8ebf97ef4a67d73baf635e71c
tree402fe90a5b92ab6d5655bbd69d07b09e24ae9e91
parentc1a95f83acd0fd9ea141d0354c17ce8a51dfa817
OSDMap: unify the pg_to_acting_osds and pg_to_up_acting_osds implementations

These were the same except for a call to _raw_to_up_osds(). Move the
existing pg_to_up_acting_osds into a private function taking a pointer,
only fill in the up vector if it's a non-NULL pointer, and call it via
the obvious header implementations.

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