]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: read_error should trigger a repair in _compare_scrub_objects
authorSamuel Just <sam.just@inktank.com>
Fri, 29 Mar 2013 00:03:28 +0000 (17:03 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 1 Apr 2013 16:38:11 +0000 (09:38 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index c598255e2bef9c6ad8dc6097c7eaf86fc8705400..242b6fcfddd09be047c8d85955bd79e1cc083ebd 100644 (file)
@@ -4179,6 +4179,10 @@ bool PG::_compare_scrub_objects(ScrubMap::object &auth,
                                ostream &errorstream)
 {
   bool ok = true;
+  if (candidate.read_error) {
+    ok = false;
+    errorstream << "candidate had a read error";
+  }
   if (auth.size != candidate.size) {
     ok = false;
     errorstream << "size " << candidate.size