From c6cb24cb2ea30f4747bec671eb742fc7ffac90eb Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 27 Feb 2019 20:51:59 +0800 Subject: [PATCH] osd: correct a local variable type `need_up_thru` is a boolean not a number (epoch_t). Signed-off-by: Kefu Chai --- src/osd/OSD.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index bfd7b3bbb19..d82940263d4 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -9756,7 +9756,8 @@ void OSD::dequeue_peering_evt( { PG::RecoveryCtx rctx = create_context(); auto curmap = sdata->get_osdmap(); - epoch_t need_up_thru = 0, same_interval_since = 0; + bool need_up_thru = false; + epoch_t same_interval_since = 0; if (!pg) { if (const MQuery *q = dynamic_cast(evt->evt.get())) { handle_pg_query_nopg(*q); -- 2.47.3