]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: add config to require forward to auth MDS 35377/head
authorsimon gao <simon29rock@gmail.com>
Tue, 10 Sep 2019 09:57:25 +0000 (05:57 -0400)
committerroot <root@cephdev.cern.ch>
Thu, 4 Jun 2020 15:18:19 +0000 (17:18 +0200)
commita7ea441fdd47f823b69299fd85275397e02f635e
tree91e1e0e65874804bd11f2edce4b0ffbd7b2e77a7
parent547e340e86bd5463af2d49a848cf5701e0f3f036
mds: add config to require forward to auth MDS

If mds_forward_all_requests_to_auth is set to true. MDS will been forbidden to load noauth inode, and the auth MDS will not send other info of rep. MDS through func named set_trace_dist. so the client will only send req to auth mds of inode.
(cherry picked from commit 7d42df0)

Signed-off-by: simon gao <simon29rock@gmail.com>
 Conflicts:
src/mds/MDCache.h
 - There were conflicts involving definitions in master between the added
   lines. The master only code was removed and the PR's changes were kept.
   bool forward_all_requests_to_auth was moved to the appropriate position,
   the surrounding code block in the "theirs" section was already repeated
   in the file at another place.
src/common/options.cc
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/MDSRank.cc
src/mds/Server.cc