]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove code to bypass dumping empty header scrub info
authorDhairya Parmar <dparmar@redhat.com>
Mon, 22 May 2023 10:37:34 +0000 (16:07 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Wed, 28 Jun 2023 12:42:27 +0000 (18:12 +0530)
Previously when ~mdsdir was scrubbed at CephFS root, it's header
was kept empty, thus it became necessary to not dump it's values
for 'scrub status'. Now since both the scrubs(~mdsdir and root)
run under the same header, this code is no more needed.

Fixes: https://tracker.ceph.com/issues/59350
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
src/mds/ScrubStack.cc

index a544af7665e6941926c90b0ae03dca4e1153f842..6d799343f1496c2f7c0a414a67215d9185f1c0a2 100644 (file)
@@ -668,11 +668,6 @@ void ScrubStack::scrub_status(Formatter *f) {
     have_more = false;
     auto& header = p.second;
 
-    if (mdcache->get_inode(header->get_origin())->is_mdsdir() 
-    && header->get_scrub_mdsdir() && header->get_tag().empty()) {
-      continue;
-    }
-
     std::string tag(header->get_tag());
     f->open_object_section(tag.c_str()); // scrub id