]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Sep 2014 12:03:51 +0000 (14:03 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 2 Sep 2014 12:03:51 +0000 (14:03 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/ReplicatedPG.cc

index 29c768e425eb6049c700ecd5bc6044158aa287c6..4e0de1d66fa5086c648f3effe68138b2e3a91cc7 100644 (file)
@@ -1632,7 +1632,7 @@ bool ReplicatedPG::maybe_handle_cache(OpRequestRef op,
           // Check if in other hit sets
           map<time_t,HitSetRef>::iterator itor;
           bool in_other_hit_sets = false;
-          for (itor = agent_state->hit_set_map.begin(); itor != agent_state->hit_set_map.end(); itor++) {
+          for (itor = agent_state->hit_set_map.begin(); itor != agent_state->hit_set_map.end(); ++itor) {
             if (itor->second->contains(missing_oid)) {
               in_other_hit_sets = true;
               break;