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

Method getCount

plugins/experimental/block_errors/block_errors.cc:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 uint32_t
123 getCount(swoc::IPAddr const &ip)
124 {
125 std::shared_lock lock(_mutex);
126 auto item = _table.find(ip);
127 if (item == _table.end()) {
128 return 0;
129 } else {
130 uint32_t tmp_count = item->second._count;
131 return tmp_count;
132 }
133 }
134
135 void
136 clean()

Callers 1

handle_start_hookFunction · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected