]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: don't track change of config 'mds_replay_unsafe_with_closed_session'
authorYan, Zheng <zyan@redhat.com>
Mon, 17 Aug 2020 04:55:22 +0000 (12:55 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 17 Aug 2020 08:40:22 +0000 (16:40 +0800)
the option is only used when mds is recovering.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/common/options.cc
src/mds/MDSRank.cc
src/mds/Server.cc

index 39d56304eac26078ed9ae463d99b63ebcfd93cd8..14426aaae9821ef8ed2a15152a072b216df8dae3 100644 (file)
@@ -7957,7 +7957,7 @@ std::vector<Option> get_mds_options() {
 
     Option("mds_replay_unsafe_with_closed_session", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
     .set_default(false)
-    .set_flag(Option::FLAG_RUNTIME)
+    .set_flag(Option::FLAG_STARTUP)
     .set_description("complete all the replay request when mds is restarted, no matter the session is closed or not"),
 
     Option("mds_default_dir_hash", Option::TYPE_INT, Option::LEVEL_ADVANCED)
index e49ca9676143bb40bcc78fd4a66d466a13f990d2..c355ea175ca203de800d89d8bfd838e216d9e91e 100644 (file)
@@ -3621,7 +3621,6 @@ const char** MDSRankDispatcher::get_tracked_conf_keys() const
     "mds_recall_warning_decay_rate",
     "mds_request_load_average_decay_rate",
     "mds_session_cache_liveness_decay_rate",
-    "mds_replay_unsafe_with_closed_session",
     "mds_heartbeat_grace",
     NULL
   };
index 3c7d8427f7a3bf758fce4f8da3cba497e9f59915..395a670bd647837bd6c45e651c061f820f237ceb 100644 (file)
@@ -1182,9 +1182,6 @@ void Server::handle_conf_change(const std::set<std::string>& changed) {
   if (changed.count("mds_forward_all_requests_to_auth")){
     forward_all_requests_to_auth = g_conf().get_val<bool>("mds_forward_all_requests_to_auth");
   }
-  if (changed.count("mds_replay_unsafe_with_closed_session")) {
-    replay_unsafe_with_closed_session = g_conf().get_val<bool>("mds_replay_unsafe_with_closed_session");
-  }
   if (changed.count("mds_cap_revoke_eviction_timeout")) {
     cap_revoke_eviction_timeout = g_conf().get_val<double>("mds_cap_revoke_eviction_timeout");
     dout(20) << __func__ << " cap revoke eviction timeout changed to "