]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: avoid ~mdsdir's scrubbing and reporting damage health status
authorNeeraj Pratap Singh <neesingh@redhat.com>
Wed, 9 Nov 2022 06:43:37 +0000 (12:13 +0530)
committerNeeraj Pratap Singh <neesingh@redhat.com>
Wed, 14 Dec 2022 20:11:41 +0000 (01:41 +0530)
Setting backtrace.passed as true in case of mdsdir,
as we are not having any backtrace.It would prevent the
entry in the damage table and hence prevent the HEALTH_ERR.

Fixes: https://tracker.ceph.com/issues/58030
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit ab2b23ba697ab944516d92860652c839c427cb50)

src/mds/CInode.cc

index 07517eeb7007edb3daad7f481bb4a9ed968f66dc..6fa2c4eb82ef83545b6fa8585acbb6a7616deeaf 100644 (file)
@@ -4693,6 +4693,10 @@ void CInode::validate_disk_state(CInode::validated_data *results,
         results->backtrace.error_str << "failed to read off disk; see retval";
         // we probably have a new unwritten file!
         // so skip the backtrace scrub for this entry and say that all's well
+        if (in->is_mdsdir()){
+          dout(20) << "forcing backtrace as passed since mdsdir actually doesn't have backtrace" << dendl;
+          results->backtrace.passed = true;
+        }
         if (in->is_dirty_parent()) {
           dout(20) << "forcing backtrace as passed since inode is dirty parent" << dendl;
           results->backtrace.passed = true;