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

Function RecReadConfigFile

src/records/P_RecCore.cc:377–392  ·  view source on GitHub ↗

------------------------------------------------------------------------- RecReadConfigFile -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

375// RecReadConfigFile
376//-------------------------------------------------------------------------
377RecErrT
378RecReadConfigFile()
379{
380 RecDebug(DL_Note, "Reading '%s'", g_rec_config_fpath);
381
382 // lock our hash table
383 ink_rwlock_wrlock(&g_records_rwlock);
384
385 // Parse the actual file and hash the values.
386 RecConfigFileParse(g_rec_config_fpath, RecConsumeConfigEntry);
387
388 // release our hash table
389 ink_rwlock_unlock(&g_records_rwlock);
390
391 return REC_ERR_OKAY;
392}
393
394swoc::Errata
395RecReadYamlConfigFile()

Callers

nothing calls this directly

Calls 3

ink_rwlock_wrlockFunction · 0.85
RecConfigFileParseFunction · 0.85
ink_rwlock_unlockFunction · 0.85

Tested by

no test coverage detected