]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/Migrator.cc: prefer prefix ++operator for iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 15 Mar 2013 09:16:40 +0000 (10:16 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 18 Mar 2013 11:35:36 +0000 (12:35 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/Migrator.cc

index 7b854a267c792fb3f6f27b1531d44c638b267ac9..b485ab11a9d0c830ea4af8cde85f40cc6694b755 100644 (file)
@@ -1976,7 +1976,7 @@ void Migrator::import_remove_pins(CDir *dir, set<CDir*>& bounds)
     // bounding dirfrags
     for (set<CDir*>::iterator it = bounds.begin();
         it != bounds.end();
-        it++) {
+        ++it) {
       CDir *bd = *it;
       bd->put(CDir::PIN_IMPORTBOUND);
       bd->state_clear(CDir::STATE_IMPORTBOUND);