From 7a6b9b97e266882d6bba5d63a623e9fabd93a98c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 9 May 2011 15:37:28 -0700 Subject: [PATCH] osd: fix pollution of peer_info The ++ postfix has no effect here! We really want +1. Signed-off-by: Sage Weil --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 39144be858a3..3a27b2c132b0 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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::iterator i = pg->acting.begin()++; + for (vector::iterator i = pg->acting.begin() + 1; i != pg->acting.end(); ++i) { const Info& pi = pg->peer_info[*i]; -- 2.47.3