]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix pollution of peer_info
authorSage Weil <sage.weil@dreamhost.com>
Mon, 9 May 2011 22:37:28 +0000 (15:37 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Mon, 9 May 2011 23:01:49 +0000 (16:01 -0700)
The ++ postfix has no effect here!  We really want +1.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.cc

index 39144be858a32a9dcd963b6aad94d04e6d5258fb..3a27b2c132b03a3bb0caf9c953b7db6460c5a81a 100644 (file)
@@ -4379,7 +4379,7 @@ PG::RecoveryState::GetMissing::GetMissing(my_context ctx) : my_base(ctx)
   context< RecoveryMachine >().log_enter(state_name);
 
   PG *pg = context< RecoveryMachine >().pg;
-  for (vector<int>::iterator i = pg->acting.begin()++;
+  for (vector<int>::iterator i = pg->acting.begin() + 1;
        i != pg->acting.end();
        ++i) {
     const Info& pi = pg->peer_info[*i];