]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix scan_stray_dir not reset next.frag on each run of stray inode 49669/head
authorethanwu <ethanwu@synology.com>
Tue, 13 Dec 2022 02:30:44 +0000 (10:30 +0800)
committerVenky Shankar <vshankar@redhat.com>
Mon, 9 Jan 2023 10:14:11 +0000 (15:44 +0530)
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>
(cherry picked from commit a4799689d551f865078aef4607d2cc09a67caea1)

src/mds/MDCache.cc

index a271032aeca3bf288ddb50282fc9e20c38f48532..ec5c32468434f9e6ed0c672f17d178bf01cc6d6c 100644 (file)
@@ -9947,6 +9947,7 @@ void MDCache::scan_stray_dir(dirfrag_t next)
        }
       }
     }
+    next.frag = frag_t();
   }
 }