From: Kefu Chai Date: Wed, 27 Feb 2019 12:51:59 +0000 (+0800) Subject: osd: correct a local variable type X-Git-Tag: v15.0.0~194^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c6cb24cb2ea30f4747bec671eb742fc7ffac90eb;p=ceph.git osd: correct a local variable type `need_up_thru` is a boolean not a number (epoch_t). Signed-off-by: Kefu Chai --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index bfd7b3bbb1932..d82940263d480 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);