summaryrefslogtreecommitdiff
path: root/src/cmds.cc
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-06-07 10:38:54 -0700
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>2011-06-07 10:38:54 -0700
commit83e49cd83353031ed36207f410471f139e76c892 (patch)
tree0fb97f17a2af52b5df0fc6efc45b50172dd6068a /src/cmds.cc
parente61f5c5c4fd3a307b45bb3381d95a1e5acc00ef4 (diff)
downloadceph-83e49cd83353031ed36207f410471f139e76c892.tar.gz
g_conf: change to pointer
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Diffstat (limited to 'src/cmds.cc')
-rw-r--r--src/cmds.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmds.cc b/src/cmds.cc
index 664b2b61a0a..0b77d466cb5 100644
--- a/src/cmds.cc
+++ b/src/cmds.cc
@@ -168,7 +168,7 @@ int main(int argc, const char **argv)
}
dout(0) << "requesting oneshot_replay for mds" << r << dendl;
shadow = MDSMap::STATE_ONESHOT_REPLAY;
- g_conf.mds_standby_for_rank = r;
+ g_conf->mds_standby_for_rank = r;
}
else if (ceph_argparse_witharg(args, i, &val, "--hot-standby", (char*)NULL)) {
int r = parse_rank("hot-standby", val);
@@ -178,7 +178,7 @@ int main(int argc, const char **argv)
}
dout(0) << "requesting standby_replay for mds" << r << dendl;
shadow = MDSMap::STATE_STANDBY_REPLAY;
- g_conf.mds_standby_for_rank = r;
+ g_conf->mds_standby_for_rank = r;
}
else {
derr << "Error: can't understand argument: " << *i << "\n" << dendl;
@@ -192,14 +192,14 @@ int main(int argc, const char **argv)
}
// Normal startup
- if (g_conf.name.has_default_id()) {
+ if (g_conf->name.has_default_id()) {
derr << "must specify '-i name' with the cmds instance name" << dendl;
usage();
}
SimpleMessenger *messenger = new SimpleMessenger();
messenger->bind(getpid());
- cout << "starting " << g_conf.name << " at " << messenger->get_ms_addr()
+ cout << "starting " << g_conf->name << " at " << messenger->get_ms_addr()
<< std::endl;
messenger->register_entity(entity_name_t::MDS(-1));
uint64_t supported =
@@ -229,7 +229,7 @@ int main(int argc, const char **argv)
messenger->start();
// start mds
- MDS *mds = new MDS(g_conf.name.get_id().c_str(), messenger, &mc);
+ MDS *mds = new MDS(g_conf->name.get_id().c_str(), messenger, &mc);
// in case we have to respawn...
mds->orig_argc = argc;