From a7ea441fdd47f823b69299fd85275397e02f635e Mon Sep 17 00:00:00 2001 From: simon gao Date: Tue, 10 Sep 2019 05:57:25 -0400 Subject: [PATCH] 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. --- src/common/options.cc | 5 +++++ src/mds/MDCache.cc | 9 +++++++-- src/mds/MDCache.h | 4 ++++ src/mds/MDSRank.cc | 1 + src/mds/Server.cc | 4 ++-- 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index e490cb3703a1c..6485222f1a94d 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8138,6 +8138,11 @@ std::vector