]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_erasure_code_benchmark.cc: prefer ++operator for non-primitive iterators
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 11 Nov 2014 14:52:02 +0000 (15:52 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 13 Nov 2014 22:39:08 +0000 (23:39 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/erasure-code/ceph_erasure_code_benchmark.cc

index cd1139feb411253934aa2d021bc6b91e974b9006..0cb90e18426c3cf12d4d64d22b2e862faa947d2a 100644 (file)
@@ -218,7 +218,7 @@ int ErasureCodeBench::decode_erasures(const map<int,bufferlist> &all_chunks,
       return code;
     for (set<int>::iterator chunk = want_to_read.begin();
         chunk != want_to_read.end();
-        chunk++) {
+        ++chunk) {
       if (all_chunks.find(*chunk)->second.length() != decoded[*chunk].length()) {
        cerr << "chunk " << *chunk << " length=" << all_chunks.find(*chunk)->second.length()
             << " decoded with length=" << decoded[*chunk].length() << endl;