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

Method cleanup_entry

src/proxy/http/HttpVCTable.cc:114–126  ·  view source on GitHub ↗

bool HttpVCTable::cleanup_entry(HttpVCEntry* e) Closes the associate vc for the entry, and the call remove_entry

Source from the content-addressed store, hash-verified

112// and the call remove_entry
113//
114void
115HttpVCTable::cleanup_entry(HttpVCTableEntry *e)
116{
117 ink_assert(e->vc);
118 if (e->in_tunnel == false) {
119 if (e->vc_type == HTTP_SERVER_VC) {
120 Metrics::Counter::increment(http_rsb.origin_shutdown_cleanup_entry);
121 }
122 e->vc->do_io_close();
123 e->vc = nullptr;
124 }
125 remove_entry(e);
126}
127
128void
129HttpVCTable::cleanup_all()

Calls 2

incrementFunction · 0.85
do_io_closeMethod · 0.45

Tested by

no test coverage detected