]> 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, 29 Sep 2022 01:37:39 +0000 (21:37 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/ScrubStack.cc

index 1e0bf8d7742b4523ef69a80ff39d03c60a950881..19fef8144f44e1c4f45269e0c68955132ede00db 100644 (file)
@@ -427,7 +427,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);