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>
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: *)
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;