From: Sage Weil Date: Fri, 27 Mar 2015 17:04:00 +0000 (-0700) Subject: osd: fix condition for loggin scrub errors X-Git-Tag: v9.0.2~189^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d23766be902080ffb29528acb5a00d70beb97a9f;p=ceph.git 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 --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 593e650ef350..c901f42680aa 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4192,7 +4192,7 @@ void PG::scrub_compare_maps() ss); dout(2) << ss.str() << dendl; - if (!authoritative.empty()) { + if (!ss.str().empty()) { osd->clog->error(ss); }