mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #19988 from liewegas/wip-22673
osd: only exit if *latest* map(s) say we are destroyed Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
04d90a7d2c
@ -5404,8 +5404,12 @@ void OSD::_preboot(epoch_t oldest, epoch_t newest)
|
||||
if (osdmap->get_epoch() == 0) {
|
||||
derr << "waiting for initial osdmap" << dendl;
|
||||
} else if (osdmap->is_destroyed(whoami)) {
|
||||
derr << "osdmap says I am destroyed, exiting" << dendl;
|
||||
exit(0);
|
||||
derr << "osdmap says I am destroyed" << dendl;
|
||||
// provide a small margin so we don't livelock seeing if we
|
||||
// un-destroyed ourselves.
|
||||
if (osdmap->get_epoch() > newest - 1) {
|
||||
exit(0);
|
||||
}
|
||||
} else if (osdmap->test_flag(CEPH_OSDMAP_NOUP) || osdmap->is_noup(whoami)) {
|
||||
derr << "osdmap NOUP flag is set, waiting for it to clear" << dendl;
|
||||
} else if (!osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
|
||||
|
Loading…
Reference in New Issue
Block a user