]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: ignore PGs from pools of failure-domain OSD 20703/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 5 Mar 2018 04:22:55 +0000 (12:22 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 5 Mar 2018 05:39:49 +0000 (13:39 +0800)
commitf9a35aa55853e9c01412bb3593df34bb404a4504
tree465ab8f640dd94651cebdcd7162f93019c968d25
parentcf65a91acf32b4499a62d4766eeafce530e7d19e
osd/OSDMap: ignore PGs from pools of failure-domain OSD

For testing purpose, we may create pools of failure-domain OSD.
In this case get_parent_of_type() will always return 0 and all
parents of these PGs' *up set* are considered as collided, and
hence the relevant pg_upmap/items are incorrectly removed during
the maybe_remove_pg_upmaps() procedure.

Fix the above problem by skipping these PGs and also try to be
more specific if we are unable to load the parent of a specified
PG.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSDMap.cc