]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: remove "mds log" config option
authorJohn Spray <john.spray@redhat.com>
Thu, 20 Apr 2017 09:00:06 +0000 (10:00 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 20 Apr 2017 09:02:17 +0000 (10:02 +0100)
This was occasionally useful for establishing a journal-less
performance baseline, but it has two big problems:
* We don't test it, so it's probably broken a lot of the time
* It sounds a lot to a naive user like an option for controlling
  logging.

IMO, anyone who wants this behaviour is in sufficiently advanced
territory that then can hack it in and recompile, we don't need
to leave dangerous things like this in our releases.

Fixes: http://tracker.ceph.com/issues/18816
Signed-off-by: John Spray <john.spray@redhat.com>
doc/cephfs/mds-config-ref.rst
src/common/config_opts.h
src/mds/MDLog.cc

index f877e83491b62159c8a70920dd29d1419e84189a..b3446d698dbba146cf6cb4464039e889caebac96 100644 (file)
 :Default: ``2`` (i.e., rjenkins)
 
 
-``mds log``
-
-:Description: Set to ``true`` if the MDS should journal metadata updates 
-              (disabled for benchmarking only).
-              
-:Type:  Boolean
-:Default: ``true``
-
-
 ``mds log skip corrupt events``
 
 :Description: Determines whether the MDS should try to skip corrupt journal 
index 4c7d9da7f1e2918b8d37d2745482fee72a84c699..55c080256b9090253d5107fdbf17eba35f7c96d2 100644 (file)
@@ -522,7 +522,6 @@ OPTION(mds_scatter_nudge_interval, OPT_FLOAT, 5)  // how quickly dirstat changes
 OPTION(mds_client_prealloc_inos, OPT_INT, 1000)
 OPTION(mds_early_reply, OPT_BOOL, true)
 OPTION(mds_default_dir_hash, OPT_INT, CEPH_STR_HASH_RJENKINS)
-OPTION(mds_log, OPT_BOOL, true)
 OPTION(mds_log_pause, OPT_BOOL, false)
 OPTION(mds_log_skip_corrupt_events, OPT_BOOL, false)
 OPTION(mds_log_max_events, OPT_INT, -1)
index 9069718e31039b8c595f45ca5698f5ad1f3c8d3f..7b2826e97007610f8c51babeea6d5b94965fd594 100644 (file)
@@ -280,14 +280,6 @@ void MDLog::_submit_entry(LogEvent *le, MDSLogContextBase *c)
   assert(le == cur_event);
   cur_event = NULL;
 
-  if (!g_conf->mds_log) {
-    // hack: log is disabled.
-    if (c) {
-      mds->finisher->queue(c, 0);
-    }
-    return;
-  }
-
   // let the event register itself in the segment
   assert(!segments.empty());
   LogSegment *ls = segments.rbegin()->second;
@@ -446,12 +438,6 @@ void MDLog::_submit_thread()
 
 void MDLog::wait_for_safe(MDSInternalContextBase *c)
 {
-  if (!g_conf->mds_log) {
-    // hack: bypass.
-    c->complete(0);
-    return;
-  }
-
   submit_mutex.Lock();
 
   bool no_pending = true;