]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix choose_target_mds for requests that do name lookup 23438/head
authorYan, Zheng <zyan@redhat.com>
Mon, 6 Aug 2018 06:51:09 +0000 (14:51 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 6 Aug 2018 07:16:30 +0000 (15:16 +0800)
commit436d1741e623748bc0dfd4e305d4c07cc602a093
tree8918dc0a9876dc39a8c4987415e1118c70eae3a3
parent16922bea462629259e4cb2c6a574a389684ad5fe
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>
src/client/Client.cc