MgrStandby contains an Objecter with a ceph_timer and
associated thread. Create it after we fork.
Signed-off-by: Sage Weil <sage@redhat.com>
// For consumption by KeyRing::from_ceph_context in MonClient
g_conf->set_val("keyring", "$mgr_data/keyring", false);
- MgrStandby mgr;
-
// Handle --help
if ((args.size() == 1 && (std::string(args[0]) == "--help" || std::string(args[0]) == "-h"))) {
+ MgrStandby mgr;
mgr.usage();
return 0;
}
global_init_chdir(g_ceph_context);
common_init_finish(g_ceph_context);
+ MgrStandby mgr;
int rc = mgr.init();
if (rc != 0) {
std::cerr << "Error in initialization: " << cpp_strerror(rc) << std::endl;