From 635673928a6b4dae6d4712cacad81cbac6412dc3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Dec 2012 15:27:07 -0800 Subject: [PATCH] osd: fix recovery assert for pg repair case In the case of PG repair, this assert is not valid. Disable it for now. Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 612dc4a8677bb..e8d395c78f3a9 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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); } } -- 2.39.5