]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: add osd_is_valid_op_target()
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 01:04:35 +0000 (17:04 -0800)
committerSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 01:04:35 +0000 (17:04 -0800)
commit89c02637914ac7332e9dbdbfefc2049b2b6c127d
treeb5abf554f8ae92489a0f18166efb89e053587047
parentd76bfc2e8ebed3a187d4b6c6019f6782255cabe7
osd/OSDMap: add osd_is_valid_op_target()

Helper to check whether an osd is a given op target for a pg.  This
assumes that for EC we always send ops to the primary, while for
replicated we may target any replica.

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