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>
(cherry picked from commit
5fd00a6e1b914880ab9f401faf591e73024f18ef)
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() << "'";
+ }
}
}