From: Samuel Just Date: Fri, 29 Mar 2013 00:03:28 +0000 (-0700) Subject: PG: read_error should trigger a repair in _compare_scrub_objects X-Git-Tag: v0.62~113^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a838965ca3a77114025fe931c99c658cf6e2ed4f;p=ceph.git PG: read_error should trigger a repair in _compare_scrub_objects Signed-off-by: Samuel Just --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index c598255e2bef..242b6fcfddd0 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -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