]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: change mon_data_size_warn type to TYPE_SIZE 19117/head
authorJan Fajerski <jfajerski@suse.com>
Mon, 9 Apr 2018 10:21:34 +0000 (12:21 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 13 Apr 2018 16:07:41 +0000 (18:07 +0200)
As the option represents a byte count, TYPE_SIZE is appropriate and the
correct IEC unit prefixes will be parsed.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/common/options.cc

index 6372d2b0395bd0fcb214bd6ef657fa0fb1b58d3f..b0723dcb1e521a1f49b86efa6331ac31357967ba 100644 (file)
@@ -1525,7 +1525,7 @@ std::vector<Option> get_global_options() {
     .set_default(30)
     .set_description(""),
 
-    Option("mon_data_size_warn", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
+    Option("mon_data_size_warn", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
     .set_default(15_G)
     .set_description(""),