diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2012-03-12 21:15:50 +0100 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2012-03-12 21:21:22 +0100 |
commit | 2c88f85c6d9ce62277abc3f66e44a3fc16ebc4e2 (patch) | |
tree | 66982373998673b491db8884a3bd09e664e35d72 /src/librados-config.cc | |
parent | qa: use recent kernel for kernel_untar_build.sh (diff) | |
download | ceph-2c88f85c6d9ce62277abc3f66e44a3fc16ebc4e2.tar.xz ceph-2c88f85c6d9ce62277abc3f66e44a3fc16ebc4e2.zip |
config: alternative config options for global_init()
We want to be able to provide alternative default config values, than
the ones we set in common/config_opts.h. This can be useful when we
want different default for different modules (e.g., rgw, rgw-admin).
Just passing it on the command line won't do because then we'd override
any config set by the user, so we need to process that before the regular
parsing (but after initializing the config context).
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Diffstat (limited to 'src/librados-config.cc')
-rw-r--r-- | src/librados-config.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librados-config.cc b/src/librados-config.cc index 9fbef57a0c3..a0a064fd1d7 100644 --- a/src/librados-config.cc +++ b/src/librados-config.cc @@ -42,7 +42,7 @@ int main(int argc, const char **argv) bool opt_version = false; bool opt_vernum = false; - global_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0); + global_init(NULL, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY, 0); common_init_finish(g_ceph_context); for (std::vector<const char*>::iterator i = args.begin(); |