]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix empty directory check
authorYan, Zheng <zheng.z.yan@intel.com>
Thu, 7 Nov 2013 09:07:51 +0000 (17:07 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Mon, 16 Dec 2013 04:15:23 +0000 (12:15 +0800)
commit913f7fd8dbc0cc96de58cbc96e88394b5b952fd7
tree8611d6d3077c1bf9b4d201b92fb7d4a878d1d701
parent2fea08b59c08ae4c08f1d12ce9586864beb6f4ea
mds: fix empty directory check

Since commit 310032ee81(fix mds scatter_writebehind starvation), rdlock
a scatter lock does not always propagate dirty fragstats to corresponding
inode. So Server::_dir_is_nonempty() needs to check each dirfrag's stat
intead of checking inode's dirstat.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Server.cc