From: Kefu Chai Date: Sat, 16 Mar 2019 02:48:17 +0000 (+0800) Subject: crimson/osd: pass unknown args to ConfigProxy::parse_args() X-Git-Tag: v15.0.0~188^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=21484a09e2d2c86af437e133ea89951a0915263d;p=ceph-ci.git crimson/osd: pass unknown args to ConfigProxy::parse_args() these args are not recognized by seastar's app_template's option parser, so they are likely to be the ceph options and should be fed to ConfigProxy::parse_args() Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/main.cc b/src/crimson/osd/main.cc index 49d4b03e5e3..64ccc389d6d 100644 --- a/src/crimson/osd/main.cc +++ b/src/crimson/osd/main.cc @@ -95,6 +95,8 @@ int main(int argc, char* argv[]) return sharded_perf_coll().start(); }).then([&conf_file_list] { return local_conf().parse_config_files(conf_file_list); + }).then([&] { + return local_conf().parse_argv(ceph_args); }).then([&] { return osd.start_single(std::stoi(local_conf()->name.get_id()), static_cast(getpid()));