]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix choose_target_mds for requests that do name lookup 23793/head
authorYan, Zheng <zyan@redhat.com>
Mon, 6 Aug 2018 06:51:09 +0000 (14:51 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 29 Aug 2018 01:44:38 +0000 (21:44 -0400)
commit0d7f70b3ddfec9509bba2fbbffbd2daee4280a7c
tree3e6d9a70df6b1a4b0d48f9dbb65dce0c50b2ee7b
parentf455965d34f51f813f10a3ff9630d400d6df6e61
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)

Conflicts:
src/client/Client.cc : Resolved in choose_target_mds
src/client/Client.cc