mds/MDCache.cc: prefer prefix ++operator for iterators

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-03-15 10:04:49 +01:00
parent 55e8bcc074
commit 2b902b3eeb

View 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;