]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSDMap.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 2 Oct 2014 16:17:15 +0000 (18:17 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 8 Oct 2014 20:56:22 +0000 (22:56 +0200)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/OSDMap.cc

index ed9b7e7ecf6b41bbc2187dbafe26c94b00d0810b..e0c133d2a0bf3b94c3dc88db5ec6e4ddcc03d574 100644 (file)
@@ -996,7 +996,7 @@ uint64_t OSDMap::get_features(int entity_type, uint64_t *pmask) const
   if (entity_type == CEPH_ENTITY_TYPE_OSD) {
     for (map<string,map<string,string> >::const_iterator p = erasure_code_profiles.begin();
         p != erasure_code_profiles.end();
-        p++) {
+        ++p) {
       const map<string,string> &profile = p->second;
       map<string,string>::const_iterator plugin = profile.find("plugin");
       if (plugin != profile.end() && (plugin->second == "isa" ||