]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: correct a local variable type 26672/head
authorKefu Chai <kchai@redhat.com>
Wed, 27 Feb 2019 12:51:59 +0000 (20:51 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 27 Feb 2019 12:52:01 +0000 (20:52 +0800)
`need_up_thru` is a boolean not a number (epoch_t).

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc

index bfd7b3bbb1932c083d1cf76d16e89aceaa33e540..d82940263d4809ee0e08858f17561ee7d6e1fc49 100644 (file)
@@ -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<const MQuery*>(evt->evt.get())) {
       handle_pg_query_nopg(*q);