]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: pass unknown args to ConfigProxy::parse_args()
authorKefu Chai <kchai@redhat.com>
Sat, 16 Mar 2019 02:48:17 +0000 (10:48 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Mar 2019 06:20:33 +0000 (14:20 +0800)
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 <kchai@redhat.com>
src/crimson/osd/main.cc

index 49d4b03e5e3ec00809472244146fb5f7b944205b..64ccc389d6d499415e2f346283d22ee6565b9c6a 100644 (file)
@@ -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<uint32_t>(getpid()));