]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 9 Sep 2015 14:51:51 +0000 (16:51 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 10 Sep 2015 17:29:21 +0000 (19:29 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/OSD.cc

index a577fd802c82a1f6749a46c02d6c5b45e165c6a1..bba412824790411bf17dab142108716c3ddaa356 100644 (file)
@@ -8797,7 +8797,7 @@ void OSD::set_pool_last_map_marked_full(OSDMap *o, epoch_t &e)
 {
   map<int64_t, epoch_t> &pool_last_map_marked_full = superblock.pool_last_map_marked_full;
   for (map<int64_t, pg_pool_t>::const_iterator it = o->get_pools().begin();
-       it != o->get_pools().end(); it++) {
+       it != o->get_pools().end(); ++it) {
     bool exist = pool_last_map_marked_full.count(it->first);
     if (it->second.has_flag(pg_pool_t::FLAG_FULL) && !exist)
       pool_last_map_marked_full[it->first] = e;