We only discard outgoing messages; incoming messages are handled by the
IncomingQueue.. but this method doesn't touch that.
Signed-off-by: Sage Weil <sage@inktank.com>
* Tears down the Pipe's message queues, and removes them from the DispatchQueue
* Must hold pipe_lock prior to calling.
*/
-void Pipe::discard_queue()
+void Pipe::discard_out_queue()
{
ldout(msgr->cct,10) << "discard_queue" << dendl;
msgr->lock.Unlock();
in_q->discard_queue();
- discard_queue();
+ discard_out_queue();
// disconnect from Connection, and mark it failed. future messages
// will be dropped.
ldout(msgr->cct,10) << "was_session_reset" << dendl;
in_q->discard_queue();
- discard_queue();
+ discard_out_queue();
msgr->dispatch_queue.queue_remote_reset(connection_state);
/* Remove all messages from the sent queue. Add those with seq > max_acked
* to the highest priority outgoing queue. */
void requeue_sent(uint64_t max_acked=0);
- void discard_queue();
+ void discard_out_queue();
void shutdown_socket() {
if (sd >= 0)
pipe_reap_queue.pop_front();
ldout(cct,10) << "reaper reaping pipe " << p << " " << p->get_peer_addr() << dendl;
p->pipe_lock.Lock();
- p->discard_queue();
+ p->discard_out_queue();
p->pipe_lock.Unlock();
p->unregister_pipe();
assert(pipes.count(p));