From 21e95c2dac9bceb70619ccfc6e466f4626211112 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 22 Sep 2015 11:16:15 -0400 Subject: [PATCH] osd: only send boot if booting on getversion completion 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 7501542cec9ef..d9caaaf87b51b 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4506,7 +4506,7 @@ void OSD::start_boot() void OSD::_maybe_boot(epoch_t oldest, epoch_t newest) { Mutex::Locker l(osd_lock); - if (is_stopping()) + if (!is_booting()) return; dout(10) << "_maybe_boot mon has osdmaps " << oldest << ".." << newest << dendl; -- 2.39.5