From 455eb2a89197e9609c5bb510112d661d388b4c85 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 27 Mar 2015 10:04:00 -0700 Subject: [PATCH] osd: fix condition for loggin scrub errors We may have an error to log even though the authoritative map is empty: when we have a digest that doesn't match all replicas. Signed-off-by: Sage Weil (cherry picked from commit d23766be902080ffb29528acb5a00d70beb97a9f) --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index ee8557fd255f6..8625d85b28f1b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4207,7 +4207,7 @@ void PG::scrub_compare_maps() ss); dout(2) << ss.str() << dendl; - if (!authoritative.empty()) { + if (!ss.str().empty()) { osd->clog->error(ss); } -- 2.39.5