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

Function check_runroot

src/tscore/runroot.cc:266–278  ·  view source on GitHub ↗

check for the using of runroot a map of all path will be returned if we do not use runroot, a empty map will be returned.

Source from the content-addressed store, hash-verified

264// a map of all path will be returned
265// if we do not use runroot, a empty map will be returned.
266RunrootMapType
267check_runroot()
268{
269 if (runroot_file.empty()) {
270 return RunrootMapType{};
271 }
272
273 int len = runroot_file.size();
274 if ((len + 1) > PATH_NAME_MAX) {
275 ink_fatal("runroot path is too big: %d, max %d\n", len, PATH_NAME_MAX - 1);
276 }
277 return runroot_map(runroot_file);
278}
279
280std::string_view
281get_runroot()

Callers 1

runroot_setupMethod · 0.85

Calls 4

ink_fatalFunction · 0.85
runroot_mapFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected