]> git-server-git.apps.pok.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:13:06 +0000 (17:13 -0800)
commit0c1c4152e6f402af7612c8c8d4719ab0f4cc6ad9
treed8b373f28016f426abac721aa737633eb20a347a
parent0d8ad6ad3c376bcab981bea9a49e1924d7eddb68
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>
(cherry picked from commit 89c02637914ac7332e9dbdbfefc2049b2b6c127d)
src/osd/OSDMap.h