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

Function initializePolicy

plugins/prefetch/fetch.cc:158–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158static bool
159initializePolicy(FetchPolicy *&policy, const char *policyName)
160{
161 bool status = true;
162 if (nullptr == policy) {
163 policy = FetchPolicy::getInstance(policyName);
164 if (nullptr == policy) {
165 PrefetchError("failed to initialize the %s policy", policyName);
166 status = false;
167 }
168 } else {
169 PrefetchDebug("state already initialized");
170 }
171 return status;
172}
173
174bool
175initializeMetrics(PrefetchMetricInfo metrics[], const PrefetchConfig &config)

Callers 1

initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected