exit(0);
}
- // First, let's determine which frontends are configured.
int flags = CINIT_FLAG_UNPRIVILEGED_DAEMON_DEFAULTS;
global_pre_init(
&defaults, args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_DAEMON,
flags);
+ // Now that we've determined which frontend(s) to use, continue with global
+ // initialization. Passing false as the final argument ensures that
+ // global_pre_init() is not invoked twice.
+ // claim the reference and release it after subsequent destructors have fired
+ auto cct = global_init(&defaults, args, CEPH_ENTITY_TYPE_CLIENT,
+ CODE_ENVIRONMENT_DAEMON,
+ flags, "rgw_data", false);
+
+ // First, let's determine which frontends are configured.
list<string> frontends;
- g_conf().early_expand_meta(g_conf()->rgw_frontends, &cerr);
- get_str_list(g_conf()->rgw_frontends, ",", frontends);
+ string rgw_frontends_str = g_conf().get_val<string>("rgw_frontends");
+ g_conf().early_expand_meta(rgw_frontends_str, &cerr);
+ get_str_list(rgw_frontends_str, ",", frontends);
multimap<string, RGWFrontendConfig *> fe_map;
list<RGWFrontendConfig *> configs;
if (frontends.empty()) {
fe_map.insert(pair<string, RGWFrontendConfig*>(framework, config));
}
- // Now that we've determined which frontend(s) to use, continue with global
- // initialization. Passing false as the final argument ensures that
- // global_pre_init() is not invoked twice.
- // claim the reference and release it after subsequent destructors have fired
- auto cct = global_init(&defaults, args, CEPH_ENTITY_TYPE_CLIENT,
- CODE_ENVIRONMENT_DAEMON,
- flags, "rgw_data", false);
-
int numa_node = g_conf().get_val<int64_t>("rgw_numa_node");
size_t numa_cpu_set_size = 0;
cpu_set_t numa_cpu_set;