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

Method perform_transform_cache_write_action

src/proxy/http/HttpSM.cc:6449–6480  ·  view source on GitHub ↗

void HttpSM::perform_transform_cache_write_action() Called to do cache write from the transform

Source from the content-addressed store, hash-verified

6447// Called to do cache write from the transform
6448//
6449void
6450HttpSM::perform_transform_cache_write_action()
6451{
6452 SMDbg(dbg_ctl_http, "%s", HttpDebugNames::get_cache_action_name(t_state.cache_info.action));
6453
6454 if (t_state.range_setup) {
6455 SMDbg(dbg_ctl_http, "perform_transform_cache_write_action %s (with range setup)",
6456 HttpDebugNames::get_cache_action_name(t_state.cache_info.action));
6457 }
6458
6459 switch (t_state.cache_info.transform_action) {
6460 case HttpTransact::CACHE_DO_NO_ACTION: {
6461 // Nothing to do
6462 transform_cache_sm.end_both();
6463 break;
6464 }
6465
6466 case HttpTransact::CACHE_DO_WRITE: {
6467 if (t_state.api_info.cache_untransformed == false) {
6468 transform_cache_sm.close_read();
6469 t_state.cache_info.transform_write_status = HttpTransact::CACHE_WRITE_IN_PROGRESS;
6470 setup_cache_write_transfer(&transform_cache_sm, transform_info.entry->vc, &t_state.cache_info.transform_store,
6471 client_response_hdr_bytes, "cache write t");
6472 }
6473 break;
6474 }
6475
6476 default:
6477 ink_release_assert(0);
6478 break;
6479 }
6480}
6481
6482// void HttpSM::perform_cache_write_action()
6483//

Callers

nothing calls this directly

Calls 2

end_bothMethod · 0.80
close_readMethod · 0.45

Tested by

no test coverage detected