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

Function RecConfigOverrideFromRunroot

src/records/RecConfigParse.cc:89–99  ·  view source on GitHub ↗

------------------------------------------------------------------------- RecConfigOverrideFromRunroot -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

87// RecConfigOverrideFromRunroot
88//-------------------------------------------------------------------------
89bool
90RecConfigOverrideFromRunroot(const char *name)
91{
92 if (!get_runroot().empty()) {
93 if (!strcmp(name, "proxy.config.bin_path") || !strcmp(name, "proxy.config.local_state_dir") ||
94 !strcmp(name, "proxy.config.log.logfile_dir") || !strcmp(name, "proxy.config.plugin.plugin_dir")) {
95 return true;
96 }
97 }
98 return false;
99}
100
101//-------------------------------------------------------------------------
102// RecConfigOverrideFromEnvironment

Callers 1

Calls 3

get_runrootFunction · 0.85
strcmpFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected