summaryrefslogtreecommitdiffstats
path: root/src/ceph_syn.cc
diff options
context:
space:
mode:
authorMatt Benjamin <matt@cohortfs.com>2014-12-23 20:41:52 +0100
committerMatt Benjamin <matt@cohortfs.com>2015-01-14 22:41:40 +0100
commit4cbf2d5595fb40bb87a1402edd53abdbed0dd9c7 (patch)
tree2e445377f23e8b5a509dd04b271d7607b4b40cd0 /src/ceph_syn.cc
parentmsg: crc configuration in messenger (diff)
downloadceph-4cbf2d5595fb40bb87a1402edd53abdbed0dd9c7.tar.xz
ceph-4cbf2d5595fb40bb87a1402edd53abdbed0dd9c7.zip
Cosmetic: Normalize an entity_name_t initialization in ceph-syn.
Signed-off-by: Matt Benjamin <matt@cohortfs.com>
Diffstat (limited to 'src/ceph_syn.cc')
-rw-r--r--src/ceph_syn.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ceph_syn.cc b/src/ceph_syn.cc
index d9954db42e5..71db206d785 100644
--- a/src/ceph_syn.cc
+++ b/src/ceph_syn.cc
@@ -65,9 +65,10 @@ int main(int argc, const char **argv, char *envp[])
cout << "ceph-syn: starting " << g_conf->num_client << " syn client(s)" << std::endl;
for (int i=0; i<g_conf->num_client; i++) {
- messengers[i] = Messenger::create(g_ceph_context, g_conf->ms_type,
- entity_name_t(entity_name_t::TYPE_CLIENT,-1), "synclient",
- i * 1000000 + getpid());
+ messengers[i] = Messenger::create(
+ g_ceph_context, g_conf->ms_type,
+ entity_name_t(entity_name_t::TYPE_CLIENT,-1), "synclient",
+ i * 1000000 + getpid());
messengers[i]->bind(g_conf->public_addr);
mclients[i] = new MonClient(g_ceph_context);
mclients[i]->build_initial_monmap();