]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: switch some mon options to TYPE_SIZE
authorKefu Chai <kchai@redhat.com>
Tue, 13 Feb 2018 08:01:15 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 9 Mar 2018 05:01:05 +0000 (13:01 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/options.cc

index a2a61f13c1d4ce7d2969088d719078b193fbf038..4e079cc76e42c649516f528579383493374f4a1e 100644 (file)
@@ -1361,7 +1361,7 @@ std::vector<Option> get_global_options() {
     .set_default(50)
     .set_description(""),
 
-    Option("mon_daemon_bytes", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
+    Option("mon_daemon_bytes", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
     .set_default(400ul << 20)
     .set_description(""),
 
@@ -1373,7 +1373,7 @@ std::vector<Option> get_global_options() {
     .set_default(10)
     .set_description(""),
 
-    Option("mon_reweight_min_bytes_per_osd", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
+    Option("mon_reweight_min_bytes_per_osd", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
     .set_default(100_M)
     .set_description(""),