Skip to content

Commit

Permalink
osd: fix recovery assert for pg repair case
Browse files Browse the repository at this point in the history
In the case of PG repair, this assert is not valid.  Disable it for now.

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Dec 27, 2012
1 parent 998f719 commit 6356739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5842,7 +5842,8 @@ void ReplicatedPG::recover_got(hobject_t oid, eversion_t v)
} else {
dout(10) << "last_complete now " << info.last_complete
<< " log.complete_to at end" << dendl;
assert(missing.num_missing() == 0); // otherwise, complete_to was wrong.
//below is not true in the repair case.
//assert(missing.num_missing() == 0); // otherwise, complete_to was wrong.
assert(info.last_complete == info.last_update);
}
}
Expand Down

0 comments on commit 6356739

Please sign in to comment.