From fce176170ac1296c2c8cbeb1abfa84ae476f6e25 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 6 Oct 2011 12:58:23 -0700 Subject: [PATCH] osd: boot with map of oldest-1 Signed-off-by: Sage Weil --- src/osd/OSD.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 76a2bcf333e7e..df8aa56b5ed35 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2021,7 +2021,7 @@ void OSD::_got_boot_version(epoch_t oldest, epoch_t newest) dout(10) << "_got_boot_version mon has osdmaps " << oldest << ".." << newest << dendl; // if our map within recent history, try to add ourselves to the osdmap. - if (osdmap->get_epoch() >= oldest && + if (osdmap->get_epoch() >= oldest - 1 && osdmap->get_epoch() < newest + g_conf->osd_map_message_max) { send_boot(); return; -- 2.39.5