mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
osd: shutdown if sortbitwise flag is ever cleared
Note we do this only in activate_map so that we can (while booting) skip past maps that don't have it set. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
eb8d3372e8
commit
ea8b17035e
@ -7572,6 +7572,11 @@ void OSD::activate_map()
|
||||
|
||||
dout(7) << "activate_map version " << osdmap->get_epoch() << dendl;
|
||||
|
||||
if (!osdmap->test_flag(CEPH_OSDMAP_SORTBITWISE)) {
|
||||
derr << __func__ << " SORTBITWISE flag is not set" << dendl;
|
||||
ceph_abort();
|
||||
}
|
||||
|
||||
if (osdmap->test_flag(CEPH_OSDMAP_FULL)) {
|
||||
dout(10) << " osdmap flagged full, doing onetime osdmap subscribe" << dendl;
|
||||
osdmap_subscribe(osdmap->get_epoch() + 1, false);
|
||||
|
Loading…
Reference in New Issue
Block a user