]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix recovery assert for pg repair case
authorSage Weil <sage@inktank.com>
Wed, 26 Dec 2012 23:27:07 +0000 (15:27 -0800)
committerSage Weil <sage@inktank.com>
Thu, 27 Dec 2012 21:26:09 +0000 (13:26 -0800)
In the case of PG repair, this assert is not valid.  Disable it for now.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc

index 612dc4a8677bbbd99f6b71703b1427d8bdec0c9c..e8d395c78f3a9d78b4477d48d1fa785aea0b290c 100644 (file)
@@ -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);
     }
   }