]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: properly set default dir_hash for directory inodes 13227/head
authorYan, Zheng <zyan@redhat.com>
Mon, 20 Feb 2017 03:27:09 +0000 (11:27 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 20 Feb 2017 08:12:36 +0000 (16:12 +0800)
commit9eea8395a500d6c94b7e6e2c7b925f2aa314ccb4
tree89895976508e3f684be272443ab2e5c991f49617
parent5f21e1ff6858eb426c57762355f871656dc02bf1
mds: properly set default dir_hash for directory inodes

MDCache::handle_cache_rejoin_strong(). may add new inodes (race with
cache expire). Updating these inodes is at the very end of the function.
Before these inodes get updated, MDCache::handle_cache_rejoin_strong()
may add dentries to these inodes. So dir_hash type of these inodes
should be set to the default value.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc