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

Function RecConsumeConfigEntry

src/records/P_RecCore.cc:363–372  ·  view source on GitHub ↗

Consume a parsed record, pushing it into the records hash table.

Source from the content-addressed store, hash-verified

361
362// Consume a parsed record, pushing it into the records hash table.
363static void
364RecConsumeConfigEntry(RecT rec_type, RecDataT data_type, const char *name, const char *value, RecSourceT source)
365{
366 RecData data;
367
368 memset(&data, 0, sizeof(RecData));
369 RecDataSetFromString(data_type, &data, value);
370 RecSetRecord(rec_type, name, data_type, &data, nullptr, source, false);
371 RecDataZero(data_type, &data);
372}
373
374//-------------------------------------------------------------------------
375// RecReadConfigFile

Callers

nothing calls this directly

Calls 4

memsetFunction · 0.85
RecDataSetFromStringFunction · 0.85
RecSetRecordFunction · 0.85
RecDataZeroFunction · 0.85

Tested by

no test coverage detected