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

Method increment_fail_count

include/iocore/hostdb/HostDBProcessor.h:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264inline std::pair<bool, uint8_t>
265HostDBInfo::increment_fail_count(ts_time now, uint8_t max_retries)
266{
267 auto fcount = ++fail_count;
268 bool marked_down = false;
269 if (fcount >= max_retries) {
270 marked_down = mark_down(now);
271 }
272 return std::make_pair(marked_down, fcount);
273}
274
275inline bool
276HostDBInfo::select(ts_time now, ts_seconds fail_window) const

Callers 1

mark_host_failureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected