Skip to content

Commit

Permalink
Merge pull request ceph#17244 from liewegas/wip-21121
Browse files Browse the repository at this point in the history
osd: subscribe to new osdmap while waiting_for_healthy

Reviewed-by: Kefu Chai <[email protected]>
  • Loading branch information
liewegas authored Aug 31, 2017
2 parents 44d06eb + fbafa65 commit 6cf3b5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5688,6 +5688,9 @@ void OSD::start_waiting_for_healthy()
dout(1) << "start_waiting_for_healthy" << dendl;
set_state(STATE_WAITING_FOR_HEALTHY);
last_heartbeat_resample = utime_t();

// subscribe to osdmap updates, in case our peers really are known to be dead
osdmap_subscribe(osdmap->get_epoch() + 1, false);
}

bool OSD::_is_healthy()
Expand Down

0 comments on commit 6cf3b5c

Please sign in to comment.