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

Function sdk_sanity_check_stat_id

src/api/InkAPI.cc:552–556  ·  view source on GitHub ↗

Plugin metric IDs index the plugin RSB, so bounds check against that.

Source from the content-addressed store, hash-verified

550
551// Plugin metric IDs index the plugin RSB, so bounds check against that.
552static TSReturnCode
553sdk_sanity_check_stat_id(int id)
554{
555 return (global_api_metrics.valid(id) ? TS_SUCCESS : TS_ERROR);
556}
557
558static TSReturnCode
559sdk_sanity_check_rpc_handler_options(const TSRPCHandlerOptions *opt)

Callers 4

TSStatIntIncrementFunction · 0.85
TSStatIntDecrementFunction · 0.85
TSStatIntGetFunction · 0.85
TSStatIntSetFunction · 0.85

Calls 1

validMethod · 0.45

Tested by

no test coverage detected