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

Function increment_stat

plugins/regex_revalidate/regex_revalidate.cc:80–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static void
81increment_stat(TSCacheLookupResult const result)
82{
83 switch (result) {
84 case TS_CACHE_LOOKUP_MISS:
85 if (TS_ERROR != stat_id_miss) {
86 TSStatIntIncrement(stat_id_miss, 1);
87 Dbg(dbg_ctl, "Incrementing stat '%s'", stat_name_miss);
88 }
89 break;
90 case TS_CACHE_LOOKUP_HIT_STALE:
91 if (TS_ERROR != stat_id_stale) {
92 TSStatIntIncrement(stat_id_stale, 1);
93 Dbg(dbg_ctl, "Incrementing stat '%s'", stat_name_stale);
94 }
95 break;
96 default:
97 break;
98 }
99}
100
101static const char *
102strForResult(TSCacheLookupResult const result)

Callers 1

main_handlerFunction · 0.85

Calls 1

TSStatIntIncrementFunction · 0.85

Tested by

no test coverage detected