]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: reindent maybe_add_creating_pgs()
authorKefu Chai <kchai@redhat.com>
Tue, 16 May 2017 05:51:48 +0000 (13:51 +0800)
committerSage Weil <sage@redhat.com>
Fri, 2 Jun 2017 17:02:09 +0000 (13:02 -0400)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGMonitor.cc

index c7b3e2258da2a27b18f51f65433db0866dcd8d34..84d542562c289016453212486bce34093b242f46 100644 (file)
@@ -1714,11 +1714,11 @@ public:
                                      creating_pgs_t *pending_creates) const {
     if (parent.last_pg_scan >= scan_epoch) {
       for (auto& pgid : parent.creating_pgs) {
-      auto st = parent.pg_stat.find(pgid);
-      assert(st != parent.pg_stat.end());
-      auto created = make_pair(st->second.created, st->second.last_scrub_stamp);
-      // no need to add the pg, if it already exists in creating_pgs
-      pending_creates->pgs.emplace(pgid, created);
+       auto st = parent.pg_stat.find(pgid);
+       assert(st != parent.pg_stat.end());
+       auto created = make_pair(st->second.created, st->second.last_scrub_stamp);
+       // no need to add the pg, if it already exists in creating_pgs
+       pending_creates->pgs.emplace(pgid, created);
       }
     }
   }