]> git-server-git.apps.pok.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)
committerSage Weil <sage@redhat.com>
Tue, 7 Apr 2015 18:42:14 +0000 (11:42 -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>
src/osd/PG.cc

index 593e650ef3502e9835aa82e1e484cb885553acc4..c901f42680aa8edbd704e5c258ee79d5b3a199eb 100644 (file)
@@ -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);
     }