]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove obsolete osd_map_max_advance option
authorSage Weil <sage@redhat.com>
Wed, 29 Nov 2017 19:43:06 +0000 (13:43 -0600)
committerSage Weil <sage@redhat.com>
Mon, 4 Dec 2017 18:45:17 +0000 (12:45 -0600)
We now always advance to the latest map epoch at once.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc
src/osd/OSD.cc

index 22d62ab4705a6b5d5a232410d148fd1296e6084c..ec32f3d25567f9e7e05f6ca7579ee79212d96709 100644 (file)
@@ -621,7 +621,6 @@ OPTION(osd_tier_promote_max_bytes_sec, OPT_U64)
 OPTION(osd_objecter_finishers, OPT_INT)
 
 OPTION(osd_map_dedup, OPT_BOOL)
-OPTION(osd_map_max_advance, OPT_INT) // make this < cache_size!
 OPTION(osd_map_cache_size, OPT_INT)
 OPTION(osd_map_message_max, OPT_INT)  // max maps per MOSDMap message
 OPTION(osd_map_share_max_epochs, OPT_INT)  // cap on # of inc maps we send to peers, clients
index bc8ca9c42f743101f1c0808233e3da60ab01146b..2b311db7b93de85f8dd77aa17ec26a5124e1a4ce 100644 (file)
@@ -1899,10 +1899,6 @@ std::vector<Option> get_global_options() {
     .set_default(true)
     .set_description(""),
 
-    Option("osd_map_max_advance", Option::TYPE_INT, Option::LEVEL_ADVANCED)
-    .set_default(40)
-    .set_description(""),
-
     Option("osd_map_cache_size", Option::TYPE_INT, Option::LEVEL_ADVANCED)
     .set_default(50)
     .set_description(""),
index 24c99f77a147f075ffcd3a102b53b2dfdcf5df93..c01b14a353fadbb91e07ec37754c1be7b71e04d7 100644 (file)
@@ -9275,7 +9275,6 @@ const char** OSD::get_tracked_conf_keys() const
     "osd_op_history_slow_op_threshold",
     "osd_enable_op_tracker",
     "osd_map_cache_size",
-    "osd_map_max_advance",
     "osd_pg_epoch_persisted_max_stale",
     "osd_disk_thread_ioprio_class",
     "osd_disk_thread_ioprio_priority",
@@ -9410,11 +9409,6 @@ void OSD::update_log_config()
 void OSD::check_config()
 {
   // some sanity checks
-  if (cct->_conf->osd_map_cache_size <= cct->_conf->osd_map_max_advance + 2) {
-    clog->warn() << "osd_map_cache_size (" << cct->_conf->osd_map_cache_size << ")"
-               << " is not > osd_map_max_advance ("
-               << cct->_conf->osd_map_max_advance << ")";
-  }
   if (cct->_conf->osd_map_cache_size <= (int)cct->_conf->osd_pg_epoch_persisted_max_stale + 2) {
     clog->warn() << "osd_map_cache_size (" << cct->_conf->osd_map_cache_size << ")"
                 << " is not > osd_pg_epoch_persisted_max_stale ("