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

Method UpdateMatch

src/proxy/ParentSelection.cc:854–863  ·  view source on GitHub ↗

void ParentRecord::UpdateMatch(ParentResult* result, RequestData* rdata); Updates the record ptr in result if the this element appears later in the file

Source from the content-addressed store, hash-verified

852// appears later in the file
853//
854void
855ParentRecord::UpdateMatch(ParentResult *result, RequestData *rdata)
856{
857 if (this->CheckForMatch(static_cast<HttpRequestData *>(rdata), result->line_number) == true) {
858 result->rec = this;
859 result->line_number = this->line_num;
860
861 Dbg(dbg_ctl_parent_select, "Matched with %p parent node from line %d", this, this->line_num);
862 }
863}
864
865ParentRecord::~ParentRecord()
866{

Callers

nothing calls this directly

Calls 1

CheckForMatchMethod · 0.80

Tested by

no test coverage detected