MCPcopy Create free account
hub / github.com/apache/trafficserver / die

Method die

plugins/experimental/memcache/tsmemcache.cc:169–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169int
170MC::die()
171{
172 if (pending_action && pending_action != ACTION_RESULT_DONE) {
173 pending_action->cancel();
174 }
175 if (nvc) {
176 nvc->do_io_close(1); // abort
177 }
178 if (crvc) {
179 crvc->do_io_close(1); // abort
180 }
181 if (cwvc) {
182 cwvc->do_io_close(1); // abort
183 }
184 if (rbuf) {
185 free_MIOBuffer(rbuf);
186 }
187 if (wbuf) {
188 free_MIOBuffer(wbuf);
189 }
190 if (cbuf) {
191 free_MIOBuffer(cbuf);
192 }
193
194 ats_free(tbuf);
195
196 mutex = NULL;
197 theMCAllocator.free(this);
198 return EVENT_DONE;
199}
200
201int
202MC::unexpected_event()

Callers

nothing calls this directly

Calls 5

free_MIOBufferFunction · 0.85
ats_freeFunction · 0.85
cancelMethod · 0.45
do_io_closeMethod · 0.45
freeMethod · 0.45

Tested by

no test coverage detected