From 5c8e65a2a467c05a194fa02c2e9ea746d0fd00a8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 19 Sep 2017 19:16:24 +0800 Subject: [PATCH] osdc/Journaler: use new style options also use uint64_t for these options, as they are casted to uint64_t when reading from conf. Signed-off-by: Kefu Chai --- src/common/legacy_config_opts.h | 3 --- src/common/options.cc | 10 ++++++++-- src/osdc/Journaler.cc | 11 +++-------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index 098a00c1363..24c3f99ce3e 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -424,9 +424,6 @@ OPTION(filer_max_purge_ops, OPT_U32) // Max number of truncate at once in a single Filer::truncate call OPTION(filer_max_truncate_ops, OPT_U32) -OPTION(journaler_write_head_interval, OPT_INT) -OPTION(journaler_prefetch_periods, OPT_INT) // * journal object size -OPTION(journaler_prezero_periods, OPT_INT) // * journal object size OPTION(mds_data, OPT_STR) OPTION(mds_max_file_size, OPT_U64) // Used when creating new CephFS. Change with 'ceph mds set max_file_size ' afterwards // max xattr kv pairs size for each dir/file diff --git a/src/common/options.cc b/src/common/options.cc index 115c9758401..7e3e171d3c4 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1543,12 +1543,18 @@ std::vector