fix rotating logs when enabling and disabling stats logging at run-time

This commit is contained in:
Arvid Norberg 2011-04-06 07:33:10 +00:00
parent 22f20253f8
commit 35038bc3eb
1 changed files with 8 additions and 0 deletions

View File

@ -3038,6 +3038,14 @@ namespace aux {
m_stats_logging_enabled = s;
reset_stat_counters();
if (!s)
{
if (m_stats_logger) fclose(m_stats_logger);
}
else
{
rotate_stats_log();
}
}
void session_impl::reset_stat_counters()