]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix readdir end check 775/head
authorYan, Zheng <zheng.z.yan@intel.com>
Sun, 27 Oct 2013 09:11:11 +0000 (17:11 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 29 Oct 2013 01:48:25 +0000 (09:48 +0800)
commit3b99cd0ad843074e3bfc62bf1618e6404ec1b541
tree767d40dd22bf1e10eb977d1e4893ac69e14b09cb
parent31a94922a9ada132bea06be308484ead84e4d879
mds: fix readdir end check

If the last item in the directory is a remote link and the corresponding
inode is not in cache, the readir reply will not contain the last item.
But iterator 'it' is equal to dir->end() in this case, it causes the 'end'
flag of the readdir reply be set to true.

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