]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ErasureCodeShec.cc: prefer ++operator for non-primitive iter
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 24 Feb 2015 09:41:44 +0000 (10:41 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 24 Feb 2015 09:41:44 +0000 (10:41 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/erasure-code/shec/ErasureCodeShec.cc

index f775715ec8e18e213f07c4f362eacfc77459df3c..2ad82ec0e291f0778264557ea4baa52d65b378bf 100644 (file)
@@ -93,7 +93,7 @@ int ErasureCodeShec::minimum_to_decode(const set<int> &want_to_decode,
 
   if (!minimum_chunks) return -EINVAL;
 
-  for (set<int>::iterator it = available_chunks.begin(); it != available_chunks.end(); it++){
+  for (set<int>::iterator it = available_chunks.begin(); it != available_chunks.end(); ++it){
     if (*it < 0 || k+m <= *it) return -EINVAL;
   }