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

Function emit_fully_initialized_message

src/traffic_server/traffic_server.cc:533–545  ·  view source on GitHub ↗

Gate the emission of the "Traffic Server is fuly initialized" log message. * * This message is intended to be helpful to users who want to know that * Traffic Server is not just running but has become fully initialized and is * ready to optimize traffic. This is in contrast to the "traffic server is * running" message which can be printed before either of these conditions. * * This function

Source from the content-addressed store, hash-verified

531 * after cache is initialized.
532 */
533void
534emit_fully_initialized_message()
535{
536 static std::atomic<unsigned int> initialization_state_counter = 0;
537
538 // See the doxygen comment above explaining what the states are that
539 // constitute Traffic Server being fully initialized.
540 constexpr unsigned int num_initialization_states = 2;
541
542 if (++initialization_state_counter == num_initialization_states) {
543 Note("Traffic Server is fully initialized.");
544 }
545}
546
547void
548set_debug_ip(const char *ip_string)

Callers 2

CB_After_Cache_InitFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected