mon_byte_throttler.get(),
mon_msg_throttler.get());
- int r = msgr->bind(g_conf->public_addr);
+ entity_addr_t paddr = g_conf->get_val<entity_addr_t>("public_addr");
+ int r = msgr->bind(paddr);
if (r < 0) {
- derr << "unable to bind mgr to " << g_conf->public_addr << dendl;
+ derr << "unable to bind mgr to " << paddr << dendl;
return r;
}
cmdctx->reply(r, ss);
return true;
}
- double max_change = g_conf->mon_reweight_max_change;
+
+ double max_change = g_conf->get_val<double>("mon_reweight_max_change");
cmd_getval(g_ceph_context, cmdctx->cmdmap, "max_change", max_change);
if (max_change <= 0.0) {
ss << "max_change " << max_change << " must be positive";
cmdctx->reply(-EINVAL, ss);
return true;
}
- int64_t max_osds = g_conf->mon_reweight_max_osds;
+ int64_t max_osds = g_conf->get_val<int64_t>("mon_reweight_max_osds");
cmd_getval(g_ceph_context, cmdctx->cmdmap, "max_osds", max_osds);
if (max_osds <= 0) {
ss << "max_osds " << max_osds << " must be positive";