]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix end check in Server::handle_client_readdir()
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 23 Jan 2013 03:08:37 +0000 (11:08 +0800)
committerSage Weil <sage@inktank.com>
Wed, 23 Jan 2013 17:14:59 +0000 (09:14 -0800)
commita972fd4086dea05b2e7943a20bc8c8d58afbf93c
tree3ec7b2ccb298a7ba0fba6ce9fa44340c99905055
parent17160843d0c523359d8fa934418ff2c1f7bffb25
mds: fix end check in Server::handle_client_readdir()

commit 1174dd3188 (don't retry readdir request after issuing caps)
introduced an bug that wrongly marks 'end' in the the readdir reply.
The code that touches existing dentries re-uses an iterator, and the
iterator is used for checking if readdir is end.

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