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

Method stop

src/msg/async/ProtocolV1.cc:106–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void ProtocolV1::stop() {
107 ldout(cct, 20) << __func__ << dendl;
108 if (state == CLOSED) {
109 return;
110 }
111
112 if (connection->delay_state) connection->delay_state->flush();
113
114 ldout(cct, 2) << __func__ << dendl;
115 std::lock_guard<std::mutex> l(connection->write_lock);
116
117 reset_recv_state();
118 discard_out_queue();
119
120 connection->_stop();
121
122 can_write = WriteStatus::CLOSED;
123 state = CLOSED;
124}
125
126void ProtocolV1::fault() {
127 ldout(cct, 20) << __func__ << dendl;

Callers 1

replaceMethod · 0.45

Calls 2

flushMethod · 0.45
_stopMethod · 0.45

Tested by

no test coverage detected