]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix choose_target_mds for requests that do name lookup 23700/head
authorYan, Zheng <zyan@redhat.com>
Mon, 6 Aug 2018 06:51:09 +0000 (14:51 +0800)
committerJos Collin <jcollin@redhat.com>
Thu, 23 Aug 2018 06:23:27 +0000 (11:53 +0530)
commit6c8f648a4ac0c8daca63f240935f679953ecb028
tree19800560197ff15bc106e97c99544a1155b609c8
parentd883e76ad0b115012fa04d5a2df66d8735978710
client: fix choose_target_mds for requests that do name lookup

There are two cases that a dirfrag is not recorded in CInode::fragmap.
One is that the dirfrag is not subtree root, another is that client does
not know which mds is dirfrag's auth mds. For the both cases, requests
that do name lookup are better to sent to dir inode's auth mds.

Fixes: http://tracker.ceph.com/issues/26860
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 436d1741e623748bc0dfd4e305d4c07cc602a093)
src/client/Client.cc