]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: fix scan_stray_dir not reset next.frag on each run of stray inode
authorethanwu <ethanwu@synology.com>
Tue, 13 Dec 2022 02:30:44 +0000 (10:30 +0800)
committerethanwu <ethanwu@synology.com>
Fri, 16 Dec 2022 01:44:38 +0000 (09:44 +0800)
When we finish scanning one stray inode we should reset next.frag
so that next stray inode could start from its first dir fragment
rather than last stray inode's last frag.

Fixes: https://tracker.ceph.com/issues/58294
Signed-off-by: ethanwu <ethanwu@synology.com>
src/mds/MDCache.cc

index b2e77edff94852484a0152c1d2e27c36cad57fa2..101b0b55b37a6b89f94d3ac9abeb2e396867c6a4 100644 (file)
@@ -10120,6 +10120,7 @@ void MDCache::scan_stray_dir(dirfrag_t next)
        }
       }
     }
+    next.frag = frag_t();
   }
 }