From 7d42df0cd0002505fc20456ac45725dfdec7ba96 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. Signed-off-by: simon gao --- src/common/options.cc | 5 +++++ src/mds/MDCache.cc | 9 +++++++-- src/mds/MDCache.h | 5 ++++- src/mds/MDSRank.cc | 1 + src/mds/Server.cc | 4 ++-- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index bbe8a850fcc2..d833bc971077 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -8012,6 +8012,11 @@ std::vector