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

Function TSRemapInit

plugins/statichit/statichit.cc:604–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604TSReturnCode
605TSRemapInit(TSRemapInterface * /* api_info */, char * /* errbuf */, int /* errbuf_size */)
606{
607 if (TSStatFindName("statichit.response_bytes", &StatCountBytes) == TS_ERROR) {
608 StatCountBytes = TSStatCreate("statichit.response_bytes", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_SUM);
609 }
610
611 if (TSStatFindName("statichit.response_count", &StatCountResponses) == TS_ERROR) {
612 StatCountResponses =
613 TSStatCreate("statichit.response_count", TS_RECORDDATATYPE_COUNTER, TS_STAT_NON_PERSISTENT, TS_STAT_SYNC_COUNT);
614 }
615 return TS_SUCCESS;
616}
617
618TSRemapStatus
619TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri)

Callers

nothing calls this directly

Calls 2

TSStatFindNameFunction · 0.85
TSStatCreateFunction · 0.85

Tested by

no test coverage detected