Skip to content

Commit

Permalink
Cosmetic: Normalize an entity_name_t initialization in ceph-syn.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Benjamin <[email protected]>
  • Loading branch information
Matt Benjamin committed Jan 14, 2015
1 parent 2ffacbe commit 4cbf2d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ceph_syn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4cbf2d5

Please sign in to comment.