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

Method invoke

src/api/ConfigUpdateCbTable.cc:51–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void
52ConfigUpdateCbTable::invoke()
53{
54 for (auto &&it : cb_table) {
55 auto &[contp, file_path, timestamp] = it.second;
56
57 if (!file_path.empty()) {
58 std::error_code ec;
59 auto newtime = swoc::file::last_write_time(file_path, ec);
60
61 if (!ec) {
62 if (newtime > timestamp) {
63 timestamp = newtime;
64 invoke(contp);
65 }
66 } else {
67 Error("Failed to stat %s: %s", file_path.c_str(), ec.message().c_str());
68 }
69 } else {
70 invoke(contp);
71 }
72 }
73}
74
75void
76ConfigUpdateCbTable::invoke(INKContInternal *contp)

Callers

nothing calls this directly

Calls 6

last_write_timeFunction · 0.85
ErrorClass · 0.50
emptyMethod · 0.45
c_strMethod · 0.45
messageMethod · 0.45
schedule_immMethod · 0.45

Tested by

no test coverage detected