]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: refine "Scrub error" cluster log message
authorJohn Spray <john.spray@redhat.com>
Wed, 12 Jul 2017 18:00:13 +0000 (14:00 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 1 Aug 2017 14:06:42 +0000 (15:06 +0100)
Fixes: http://tracker.ceph.com/issues/20246
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/ScrubStack.cc

index 66a145c3c2293a8c0bf141cc72a57c4a34092763..2a595acdd7a47ea9e0cd1bbaf3e821171779f7c9 100644 (file)
@@ -393,9 +393,9 @@ void ScrubStack::_validate_inode_done(CInode *in, int r,
 
   // Inform the cluster log if we found an error
   if (!result.passed_validation) {
-    clog->warn() << "Scrub error on inode " << *in
+    clog->warn() << "Scrub error on inode " << in->ino()
                  << " (" << path << ") see " << g_conf->name
-                 << " log for details";
+                 << " log and `damage ls` output for details";
 
     // Put the verbose JSON output into the MDS log for later inspection
     JSONFormatter f;