From a838965ca3a77114025fe931c99c658cf6e2ed4f Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 28 Mar 2013 17:03:28 -0700 Subject: [PATCH] PG: read_error should trigger a repair in _compare_scrub_objects Signed-off-by: Samuel Just --- src/osd/PG.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index c598255e2bef9..242b6fcfddd09 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 -- 2.39.5