]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: preserve ordering of readdir result in cache
authorYan, Zheng <ukernel@gmail.com>
Tue, 9 Sep 2014 09:34:46 +0000 (17:34 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 7 Nov 2014 10:33:37 +0000 (18:33 +0800)
commitb5ff4e99c87958211e4b7716b59084fc3417ec17
tree981b1501056cf1df41bf0774c89df3175ee6fffc
parent0671c1127015311d9894f15e2493805f93432910
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>
(cherry picked from commit 346c06c1647658768e927a47768a0bc74de17b53)
src/client/Client.cc
src/client/Dentry.h
src/client/Dir.h