Signed-off-by: Sage Weil <sage@redhat.com>
r |= MSG_CRC_HEADER;
return r;
}
+
+int Messenger::bindv(const entity_addrvec_t& addrs)
+{
+ lderr(cct) << __func__ << " " << addrs << " fallback to legacy "
+ << addrs.legacy_addr() << dendl;
+ return bind(addrs.legacy_addr());
+}
* we can be more specific about the failure.
*/
virtual int bind(const entity_addr_t& bind_addr) = 0;
+
/**
* This function performs a full restart of the Messenger component,
* whatever that means. Other entities who connect to this
* @return 0 on success, or -1 on error, or -errno if
*/
virtual int client_bind(const entity_addr_t& bind_addr) = 0;
+
+ virtual int bindv(const entity_addrvec_t& addrs);
+
/**
* @} // Configuration
*/