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

Method addPluginPathToDsoOptOutTable

src/proxy/http/remap/PluginDso.cc:394–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394bool
395PluginDso::LoadedPlugins::addPluginPathToDsoOptOutTable(std::string_view pluginPath)
396{
397 std::error_code ec;
398 auto effectivePath = fs::canonical(fs::path{pluginPath}, ec);
399
400 if (ec) {
401 PluginError("Error getting the canonical path: %s", ec.message().c_str());
402 return false;
403 }
404
405 {
406 SCOPED_MUTEX_LOCK(lock, _mutex, this_ethread());
407 _optoutDsoReloadPlugins.push_front(DisableDSOReloadPluginInfo{std::move(effectivePath)});
408 }
409
410 return true;
411}
412
413void
414PluginDso::LoadedPlugins::removePluginPathFromDsoOptOutTable(std::string_view pluginPath)

Callers 3

TSPluginDSOReloadEnableFunction · 0.80

Calls 4

canonicalFunction · 0.85
this_ethreadFunction · 0.85
c_strMethod · 0.45
messageMethod · 0.45

Tested by 1