This caused two osds to keep flipping the acting set between [2] and
[0,2] when osd.0 was far behind and needed a backlog. This is visible
as toggling between peering and peering+degraded.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
newest_update,
oldest_update);
- if (!pg->choose_acting(newest_update_osd == -1 ? 0 : newest_update_osd)) {
+ if (!pg->choose_acting(newest_update_osd == -1 ? pg->osd->whoami : newest_update_osd)) {
post_event(NeedNewMap());
} else {
if (need_backlog && !pg->log.backlog) {