]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: Don't crash when a clone is missing
authorSamuel Just <samuel.just@dreamhost.com>
Fri, 19 Aug 2011 01:15:53 +0000 (18:15 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Fri, 19 Aug 2011 01:15:53 +0000 (18:15 -0700)
Print an error rather than crashing when _scrub finds a missing
clone.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/osd/ReplicatedPG.cc

index ad91248c346a499f2c848836c5db3797eb8a5797..b5d29bb59ddb2a32c5d963047e94415cfc0002fe 100644 (file)
@@ -4843,8 +4843,7 @@ int ReplicatedPG::_scrub(ScrubMap& scrubmap, int& errors, int& fixed)
 
       // did we finish the last oid?
       if (head != sobject_t()) {
-       dout(0) << " missing clone(s) for " << head << dendl;
-       assert(head == sobject_t());  // we had better be done
+       osd->clog.error() << "Missing clone(s) for " << head << "\n";
        errors++;
       }