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

Method do_io_write

src/iocore/cache/CacheVC.cc:205–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205VIO *
206CacheVC::do_io_write(Continuation *c, int64_t nbytes, IOBufferReader *abuf, bool owner)
207{
208 ink_assert(vio.op == VIO::WRITE);
209 ink_assert(!owner);
210 vio.set_reader(abuf);
211 vio.set_continuation(c);
212 vio.ndone = 0;
213 vio.nbytes = nbytes;
214 vio.vc_server = this;
215#ifdef DEBUG
216 ink_assert(!c || c->mutex->thread_holding);
217#endif
218 if (c && !trigger && !recursive) {
219 trigger = c->mutex->thread_holding->schedule_imm_local(this);
220 }
221 return &vio;
222}
223
224void
225CacheVC::do_io_close(int alerrno)

Callers 5

open_write_calloutMethod · 0.45
CacheTest.ccFile · 0.45
initMethod · 0.45
vc_do_io_writeFunction · 0.45

Calls 3

schedule_imm_localMethod · 0.80
set_readerMethod · 0.45
set_continuationMethod · 0.45

Tested by 2

open_write_calloutMethod · 0.36