]> git-server-git.apps.pok.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, 29 Sep 2022 01:37:39 +0000 (21:37 -0400)
Otherwise, we get wrong scrub errors after repair.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/CDir.cc

index 7744a47e45405648e1a6f3f902eb612aca5e9577..0d59c4cf3425fba2b01e73db6d4ba3a82c93c478 100644 (file)
@@ -3753,6 +3753,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;
 }