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

Method obtain

plugins/experimental/txn_box/plugin/src/Extractor.cc:94–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 return spot == _info.end() ? nullptr : spot;
93}
94auto
95FeatureGroup::Tracking::obtain(swoc::TextView const &name) -> Tracking::Info *
96{
97 Info *spot = this->find(name);
98 if (nullptr == spot) {
99 spot = this->alloc();
100 spot->_name = name;
101 }
102 return spot;
103}
104
105FeatureGroup::index_type
106FeatureGroup::index_of(swoc::TextView const &name)

Callers 1

load_keyMethod · 0.80

Calls 2

allocMethod · 0.95
findMethod · 0.45

Tested by

no test coverage detected