]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix infinite loop of MDCache::populate_mydir().
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 10 Oct 2013 02:35:48 +0000 (10:35 +0800)
committerGreg Farnum <greg@inktank.com>
Wed, 16 Oct 2013 23:08:09 +0000 (16:08 -0700)
commit299ddd31b29e332dc5e76bc4f871e4769698665d
treebb45c21de07296b05197faed0218cebd8003191f
parent7d99940467019bda74da83f3f1ebc2da46bd6967
mds: fix infinite loop of MDCache::populate_mydir().

make MDCache::populate_mydir() only fetch bare-bone stray dirs.
After all stray dirs are populated, call MDCache::scan_stray_dir(),
it fetches incomplete stray dirs.

Fixes: #4405
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
(cherry picked from commit 007f06ec174d4ee5cfb578c8b3f1c96b2bb0c238)

Conflicts:

src/mds/MDCache.h

Reviewed-by: Greg Farnum <greg@inktank.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/MDS.cc