]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix condition for loggin scrub errors
authorSage Weil <sage@redhat.com>
Fri, 27 Mar 2015 17:04:00 +0000 (10:04 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 4 Aug 2015 14:39:00 +0000 (07:39 -0700)
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 <sage@redhat.com>
(cherry picked from commit d23766be902080ffb29528acb5a00d70beb97a9f)

src/osd/PG.cc

index ee8557fd255f65eb8f26eb40065c8d4e947fa134..8625d85b28f1be67f0f9b9aa47f29816782c19bb 100644 (file)
@@ -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);
     }