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

index e085ab6c998a16db17181899ef9bb18b49f1e119..554ade6465c4d5464fa3ed3f997644ea8f895f70 100644 (file)
@@ -7560,7 +7560,7 @@ void MDCache::_do_find_ino_peer(find_ino_peer_info_t& fip)
     m = fip.hint;
     fip.hint = -1;
   } else {
-    for (set<int>::iterator p = active.begin(); p != active.end(); p++)
+    for (set<int>::iterator p = active.begin(); p != active.end(); ++p)
       if (*p != mds->whoami &&
          fip.checked.count(*p) == 0) {
        m = *p;