summaryrefslogtreecommitdiff
path: root/src/ceph_mds.cc
diff options
context:
space:
mode:
authorGreg Farnum <gregory.farnum@dreamhost.com>2012-03-01 18:48:46 -0800
committerGreg Farnum <gregory.farnum@dreamhost.com>2012-03-02 12:32:36 -0800
commit091b17601631046e092fc4fa3ce357a9d6b67250 (patch)
tree15e7f9f4d938c20e3cd8ec4fd07de92527af6b1b /src/ceph_mds.cc
parent26e48f4234c051edeeac6e7ba739f911d9454b9a (diff)
downloadceph-091b17601631046e092fc4fa3ce357a9d6b67250.tar.gz
msgr: make nonce a required part of the SimpleMessenger constructor.
With that, remove the set_nonce function and the gratuitous passing of nonce around through layers of functions. Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Diffstat (limited to 'src/ceph_mds.cc')
-rw-r--r--src/ceph_mds.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc
index ed85338e1f5..bfa3698e6c9 100644
--- a/src/ceph_mds.cc
+++ b/src/ceph_mds.cc
@@ -70,8 +70,8 @@ static int do_cmds_special_action(const std::string &action,
{
common_init_finish(g_ceph_context);
SimpleMessenger *messenger = new SimpleMessenger(g_ceph_context,
- entity_name_t::CLIENT());
- messenger->set_nonce(getpid());
+ entity_name_t::CLIENT(),
+ getpid());
int r = messenger->bind(g_conf->public_addr);
if (r < 0)
return r;
@@ -232,9 +232,9 @@ int main(int argc, const char **argv)
global_print_banner();
SimpleMessenger *messenger = new SimpleMessenger(g_ceph_context,
- entity_name_t::MDS(-1));
+ entity_name_t::MDS(-1),
+ getpid());
messenger->set_cluster_protocol(CEPH_MDS_PROTOCOL);
- messenger->set_nonce(getpid());
cout << "starting " << g_conf->name << " at " << messenger->get_ms_addr()
<< std::endl;