Updated Branches: refs/heads/master d44527cf7 -> cd1f40a5f
TS-2089: needn't to check logfile's fd now The fd of logfile maybe changed by rolling routines in flush thread. As all the logbuffer will be send to flush thread, we can delay checking for logfile fd in flush thread(that is what flush thread do). So we can safely remove "ink_assert(m_fd >= 0)" in write_ascii_logbuffer3(). Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/cd1f40a5 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/cd1f40a5 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/cd1f40a5 Branch: refs/heads/master Commit: cd1f40a5fb21380435c9a8449cad966e15feebc7 Parents: d44527c Author: Yunkai Zhang <[email protected]> Authored: Fri Aug 16 11:36:52 2013 +0800 Committer: Yunkai Zhang <[email protected]> Committed: Fri Aug 16 11:46:53 2013 +0800 ---------------------------------------------------------------------- proxy/logging/LogFile.cc | 1 - 1 file changed, 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/cd1f40a5/proxy/logging/LogFile.cc ---------------------------------------------------------------------- diff --git a/proxy/logging/LogFile.cc b/proxy/logging/LogFile.cc index df605df..5bf6ba4 100644 --- a/proxy/logging/LogFile.cc +++ b/proxy/logging/LogFile.cc @@ -622,7 +622,6 @@ LogFile::write_ascii_logbuffer3(LogBufferHeader * buffer_header, char *alt_forma { Debug("log-file", "entering LogFile::write_ascii_logbuffer3 for %s " "(this=%p)", m_name, this); ink_assert(buffer_header != NULL); - ink_assert(m_fd >= 0); LogBufferIterator iter(buffer_header); LogEntryHeader *entry_header;
