]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ECBackend: turn be_deep_scrub options into legacy
authorSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 16:50:16 +0000 (10:50 -0600)
committerSage Weil <sage@redhat.com>
Sun, 14 Jan 2018 16:47:24 +0000 (10:47 -0600)
We don't have a lightweight mechanism for doing trivial config options
that is better than legacy_config_opts.h yet.  Until then,

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

index 2794084be52ef21ff72db2cd9cf95a70be800dba..c859ffe5221740d77db5ba880ac06dd0f58afd45 100644 (file)
@@ -744,6 +744,7 @@ OPTION(osd_deep_scrub_interval, OPT_FLOAT) // once a week
 OPTION(osd_deep_scrub_randomize_ratio, OPT_FLOAT) // scrubs will randomly become deep scrubs at this rate (0.15 -> 15% of scrubs are deep)
 OPTION(osd_deep_scrub_stride, OPT_INT)
 OPTION(osd_deep_scrub_update_digest_min_age, OPT_INT)   // objects must be this old (seconds) before we update the whole-object digest on scrub
+OPTION(osd_skip_data_digest, OPT_BOOL)
 OPTION(osd_class_dir, OPT_STR) // where rados plugins are stored
 OPTION(osd_open_classes_on_start, OPT_BOOL)
 OPTION(osd_class_load_list, OPT_STR) // list of object classes allowed to be loaded (allow all: *)
index 8901442aadb7f51ed1d90df22bd02790a5b995eb..0730c880794000742ad52a611853fa786c4e7f69 100644 (file)
@@ -2432,7 +2432,7 @@ void ECBackend::be_deep_scrub(
   sleeptime.set_from_double(cct->_conf->osd_debug_deep_scrub_sleep);
   uint64_t pos = 0;
   bool skip_data_digest = store->has_builtin_csum() &&
-    g_conf->get_val<bool>("osd_skip_data_digest");
+    g_conf->osd_skip_data_digest;
 
   uint32_t fadvise_flags = CEPH_OSD_OP_FLAG_FADVISE_SEQUENTIAL |
                            CEPH_OSD_OP_FLAG_FADVISE_DONTNEED;