]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: mark dirfrag good if repaired
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 20 Sep 2022 20:15:27 +0000 (16:15 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 30 Mar 2023 02:09:48 +0000 (22:09 -0400)
Otherwise, we get wrong scrub errors after repair.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 7d6199a226f7e54b9580cbf05d97114068377b4d)

src/mds/CDir.cc

index e1c475ac2de5b1776314006fe5ce09c7afa84fd6..bf7559df5623f92b36e5bcc62b77c52c30ea0198 100644 (file)
@@ -3625,6 +3625,7 @@ bool CDir::scrub_local()
   if (!good && scrub_infop->header->get_repair()) {
     mdcache->repair_dirfrag_stats(this);
     scrub_infop->header->set_repaired();
+    good = true;
   }
   return good;
 }