]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: cleaner scrub complete log msg
authorJohn Spray <john.spray@redhat.com>
Wed, 25 Oct 2017 09:24:03 +0000 (05:24 -0400)
committerJohn Spray <john.spray@redhat.com>
Tue, 31 Oct 2017 16:37:36 +0000 (16:37 +0000)
People often are not using a tag with their scrub,
let's not have the ugly "with tag ''" in that case.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/CInode.cc

index 860cbf9ca72dc7c346ea84718e9076cd4e8a8dd6..58a47800976440a81de0367c8b6962fbb2d2df16 100644 (file)
@@ -4449,7 +4449,12 @@ void CInode::scrub_finished(MDSInternalContextBase **c) {
   if (scrub_infop->header->get_origin() == this) {
     // We are at the point that a tagging scrub was initiated
     LogChannelRef clog = mdcache->mds->clog;
-    clog->info() << "scrub complete with tag '" << scrub_infop->header->get_tag() << "'";
+    if (scrub_infop->header->get_tag().empty()) {
+      clog->info() << "scrub complete";
+    } else {
+      clog->info() << "scrub complete with tag '"
+                   << scrub_infop->header->get_tag() << "'";
+    }
   }
 }