The down_pending_out tracks OSDs that are down that we may want to
auto-mark out. If an osd boots, it should be removed from this list
because it is no longer down; it doesn't matter whether it is marked in
or not.
Signed-off-by: Sage Weil <sage@newdream.net>
(g_conf->mon_osd_auto_mark_new_in && (oldstate & CEPH_OSD_NEW)) ||
(g_conf->mon_osd_auto_mark_in)) {
pending_inc.new_weight[from] = CEPH_OSD_IN;
- down_pending_out.erase(from); // if any
}
+ down_pending_out.erase(from); // if any
+
if (m->sb.weight)
osd_weight[from] = m->sb.weight;