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

Method _roll_files

src/proxy/logging/LogObject.cc:821–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821unsigned
822LogObject::_roll_files(long last_roll_time, long time_now)
823{
824 unsigned num_rolled = 0;
825
826 if (m_logFile) {
827 // no need to roll if object writes to a pipe
828 if (!writes_to_pipe()) {
829 num_rolled += m_logFile->roll(last_roll_time, time_now, m_reopen_after_rolling);
830
831 if (Log::config->auto_delete_rolled_files && m_max_rolled > 0) {
832 m_logFile->trim_rolled(m_max_rolled);
833 }
834 }
835 }
836
837 m_last_roll_time = time_now;
838 return num_rolled;
839}
840
841void
842LogObject::check_buffer_expiration(long time_now)

Callers

nothing calls this directly

Calls 2

trim_rolledMethod · 0.80
rollMethod · 0.45

Tested by

no test coverage detected