ls.pop_front();
if ((long)m == BAD_REMOTE_RESET) {
lock.Lock();
- Connection *con = remote_reset_q.front().first;
- entity_addr_t a = remote_reset_q.front().second;
+ Connection *con = remote_reset_q.front();
remote_reset_q.pop_front();
lock.Unlock();
ms_deliver_handle_remote_reset(con);
con->put();
} else if ((long)m == BAD_RESET) {
lock.Lock();
- Connection *con = reset_q.front().first;
- entity_addr_t a = reset_q.front().second;
+ Connection *con = reset_q.front();
reset_q.pop_front();
lock.Unlock();
ms_deliver_handle_reset(con);
for (unsigned i=0; i<rank->local.size(); i++)
if (rank->local[i])
- rank->local[i]->queue_reset(connection_state->get(), peer_addr);
+ rank->local[i]->queue_reset(connection_state->get());
// unregister
lock.Unlock();
report_failures();
for (unsigned i=0; i<rank->local.size(); i++)
if (rank->local[i])
- rank->local[i]->queue_remote_reset(connection_state->get(), peer_addr);
+ rank->local[i]->queue_remote_reset(connection_state->get());
out_seq = 0;
in_seq = 0;
}
enum { BAD_REMOTE_RESET, BAD_RESET };
- list<pair<Connection*,entity_addr_t> > remote_reset_q;
- list<pair<Connection*,entity_addr_t> > reset_q;
+ list<Connection*> remote_reset_q;
+ list<Connection*> reset_q;
- void queue_remote_reset(Connection *con, entity_addr_t a) {
+ void queue_remote_reset(Connection *con) {
lock.Lock();
- remote_reset_q.push_back(pair<Connection*,entity_addr_t>(con, a));
+ remote_reset_q.push_back(con);
dispatch_queue[CEPH_MSG_PRIO_HIGHEST].push_back((Message*)BAD_REMOTE_RESET);
cond.Signal();
lock.Unlock();
}
- void queue_reset(Connection *con, entity_addr_t a) {
+ void queue_reset(Connection *con) {
lock.Lock();
- reset_q.push_back(pair<Connection*,entity_addr_t>(con, a));
+ reset_q.push_back(con);
dispatch_queue[CEPH_MSG_PRIO_HIGHEST].push_back((Message*)BAD_RESET);
cond.Signal();
lock.Unlock();