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

Function RecReadYamlConfigFile

src/records/P_RecCore.cc:394–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394swoc::Errata
395RecReadYamlConfigFile()
396{
397 RecDebug(DL_Debug, "Reading '%s'", g_rec_config_fpath);
398
399 // lock our hash table
400 ink_rwlock_wrlock(&g_records_rwlock); // review this lock maybe it should be done inside the API
401
402 // Parse the actual file and hash the values.
403 auto ret = RecYAMLConfigFileParse(g_rec_config_fpath, SetRecordFromYAMLNode);
404
405 ink_rwlock_unlock(&g_records_rwlock);
406 return ret;
407}
408
409//-------------------------------------------------------------------------
410// RecExecConfigUpdateCbs

Callers 3

RecCoreInitFunction · 0.85
process_config_updateFunction · 0.85
cmd_verifyFunction · 0.85

Calls 3

ink_rwlock_wrlockFunction · 0.85
RecYAMLConfigFileParseFunction · 0.85
ink_rwlock_unlockFunction · 0.85

Tested by

no test coverage detected