]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: Populate primary_temp values a little more carefully 1111/head
authorGreg Farnum <greg@inktank.com>
Sat, 18 Jan 2014 01:23:33 +0000 (17:23 -0800)
committerGreg Farnum <greg@inktank.com>
Sat, 18 Jan 2014 05:04:30 +0000 (21:04 -0800)
commit7e7eda47642140c935e3d7cd3e17296033b474b0
tree8435bc448a5b10f4deba86f6fe352993bea35ac2
parent47bc71a7b4e6a5e2550863842d44796776243ef0
OSDMap: Populate primary_temp values a little more carefully

In _get_temp_osds(), we populate temp_pg from the list in the OSDMap,
but we also skip anybody in the list who's down. We need to account
for those skips when setting the primary. It's easy enough to do -- just
look at the output pg_temp list instead of the OSDMap's starting one.

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