]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: Add min/max of ms_async_op_threads 19942/head
authorShinobu Kinjo <shinobu@redhat.com>
Sat, 13 Jan 2018 01:02:39 +0000 (10:02 +0900)
committerShinobu Kinjo <shinobu@redhat.com>
Sat, 13 Jan 2018 01:02:39 +0000 (10:02 +0900)
Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
src/common/options.cc

index fbd61838dee28ce457eb7d71267690be13e43520..0459b53f0d6ac3713970c41cded3b5eeb193e7ef 100644 (file)
@@ -764,6 +764,7 @@ std::vector<Option> get_global_options() {
 
     Option("ms_async_op_threads", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
     .set_default(3)
+    .set_min_max(1, 24)
     .set_description(""),
 
     Option("ms_async_max_op_threads", Option::TYPE_UINT, Option::LEVEL_ADVANCED)