]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: preserve ordering of readdir result in cache 2431/head
authorYan, Zheng <ukernel@gmail.com>
Tue, 9 Sep 2014 09:34:46 +0000 (17:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 18 Sep 2014 07:56:04 +0000 (15:56 +0800)
commit346c06c1647658768e927a47768a0bc74de17b53
tree2fc9e22c2f56020056ee48b24b9b9f68c29b716b
parent600af25493947871c38214aa370e2544a7fea399
client: preserve ordering of readdir result in cache

Preserve ordering of readdir result in a list, so that the result of cached
readdir is consistant with uncached readdir.

As a side effect, this commit also removes the code that removes stale dentries.
This is OK because stale dentries does not have valid lease, they will be
filter out by the shared gen check in Client::_readdir_cache_cb()

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/Dentry.h
src/client/Dir.h