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:
Sage Weil 2017-02-08 14:45:40 -05:00
parent eb8d3372e8
commit ea8b17035e

View File

@ -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);