]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: cluster log scrub failure for dirfrag
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 24 Aug 2022 17:11:10 +0000 (13:11 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 30 Mar 2023 02:09:49 +0000 (22:09 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 40f483ed457a24cfdab343875ab98ca1240850a6)

src/mds/ScrubStack.cc

index 84441fcf6620350c1fef7329e7dd79d672ffba62..4bf1a7932985bce6c63753cc6a27e98880cee8d2 100644 (file)
@@ -424,7 +424,13 @@ void ScrubStack::scrub_dirfrag(CDir *dir, bool *done)
     }
   }
 
-  dir->scrub_local();
+  if (!dir->scrub_local()) {
+    std::string path;
+    dir->get_inode()->make_path_string(path, true);
+    clog->warn() << "Scrub error on dir " << dir->ino()
+                 << " (" << path << ") see " << g_conf()->name
+                 << " log and `damage ls` output for details";
+  }
 
   dir->scrub_finished();
   dir->auth_unpin(this);