return msgr->get_myaddrs();
}
-int DaemonServer::ms_handle_authentication(Connection *con)
+int DaemonServer::ms_handle_fast_authentication(Connection *con)
{
auto s = ceph::make_ref<MgrSession>(cct);
con->set_priv(s);
dout(10) << " session " << s << " " << s->entity_name
<< " has caps " << s->caps << " '" << str << "'" << dendl;
}
+ return 1;
+}
+void DaemonServer::ms_handle_accept(Connection* con)
+{
if (con->get_peer_type() == CEPH_ENTITY_TYPE_OSD) {
+ auto s = ceph::ref_cast<MgrSession>(con->get_priv());
std::lock_guard l(lock);
s->osd_id = atoi(s->entity_name.get_id().c_str());
dout(10) << "registering osd." << s->osd_id << " session "
<< s << " con " << con << dendl;
osd_cons[s->osd_id].insert(con);
}
-
- return 1;
}
bool DaemonServer::ms_handle_reset(Connection *con)