getpid());
messenger->set_cluster_protocol(CEPH_MDS_PROTOCOL);
- cout << "starting " << g_conf->name << " at " << messenger->get_ms_addr()
+ cout << "starting " << g_conf->name << " at " << messenger->get_myaddr()
<< std::endl;
uint64_t supported =
CEPH_FEATURE_UID |
global_print_banner();
cout << "starting osd." << whoami
- << " at " << client_messenger->get_ms_addr()
+ << " at " << client_messenger->get_myaddr()
<< " osd_data " << g_conf->osd_data
<< " " << ((g_conf->osd_journal.empty()) ?
"(no journal)" : g_conf->osd_journal)
// how to decompose the reply data into its consituent pieces.
messenger->set_default_policy(Messenger::Policy::client(0, CEPH_FEATURE_OSDREPLYMUX));
- ldout(cct, 1) << "starting msgr at " << messenger->get_ms_addr() << dendl;
+ ldout(cct, 1) << "starting msgr at " << messenger->get_myaddr() << dendl;
ldout(cct, 1) << "starting objecter" << dendl;
* @{
*/
/**
- * Set the IP this Messenger should currently be using.
- * This function should probably be removed in favor of making bind()
- * more intelligent in the case where it actually does set an address
- * to bind to.
+ * Set the IP this SimpleMessenger is using. This is useful if it's unset
+ * but another SimpleMessenger on the same interface has already learned its
+ * IP. Of course, this function does not change the port, since the
+ * SimpleMessenger always knows the correct setting for that.
+ * If the SimpleMesssenger's IP is already set, this function is a no-op.
+ *
+ * @param addr The IP address to set internally.
*/
void set_ip(entity_addr_t& addr);
- /**
- * Retrieve the address as a reference. This function should be removed
- * in favor of Messenger::get_myaddr().
- */
- const entity_addr_t &get_ms_addr() { return ms_addr; }
/**
* Retrieve the Messenger's address.
*