From: simon gao Date: Tue, 10 Sep 2019 09:57:25 +0000 (-0400) Subject: mds: add config to require forward to auth MDS X-Git-Tag: v14.2.11~80^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7ea441fdd47f823b69299fd85275397e02f635e;p=ceph.git 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 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. --- diff --git a/src/common/options.cc b/src/common/options.cc index e490cb3703a1..6485222f1a94 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8138,6 +8138,11 @@ std::vector