MCPcopy Create free account
hub / github.com/ceph/ceph / _stop

Method _stop

src/msg/async/AsyncConnection.cc:632–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632void AsyncConnection::_stop() {
633 writeCallback = {};
634 dispatch_queue->discard_queue(conn_id);
635 async_msgr->unregister_conn(this);
636 worker->release_worker();
637
638 state = STATE_CLOSED;
639 open_write = false;
640
641 state_offset = 0;
642 // Make sure in-queue events will been processed
643 center->dispatch_event_external(EventCallbackRef(new C_clean_handler(this)));
644}
645
646bool AsyncConnection::is_queued() const {
647 return outgoing_bl.length();

Callers 2

stopMethod · 0.45
stopMethod · 0.45

Calls 4

discard_queueMethod · 0.80
release_workerMethod · 0.80
unregister_connMethod · 0.45

Tested by

no test coverage detected