From: Kefu Chai Date: Tue, 16 May 2017 05:51:48 +0000 (+0800) Subject: mon/PGMonitor: reindent maybe_add_creating_pgs() X-Git-Tag: ses5-milestone6~8^2~19^2~93 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0647610325e154d9755c1ab8853397162247f795;p=ceph.git mon/PGMonitor: reindent maybe_add_creating_pgs() Signed-off-by: Kefu Chai --- diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index c7b3e2258da2..84d542562c28 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -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); } } }