Skip to content
Snippets Groups Projects
Commit 3cef2179 authored by Heikki Linnakangas's avatar Heikki Linnakangas
Browse files

Also fix rotation of csvlog on Windows.

Backpatch to 9.2, like the previous fix.
parent 14ba9b11
No related branches found
No related tags found
No related merge requests found
......@@ -1063,10 +1063,12 @@ pipeThread(void *arg)
* If we've filled the current logfile, nudge the main thread to do a
* log rotation.
*/
if (Log_RotationSize > 0 &&
ftell(syslogFile) >= Log_RotationSize * 1024L)
if (Log_RotationSize > 0)
{
if (ftell(syslogFile) >= Log_RotationSize * 1024L ||
(csvlogFile != NULL && ftell(csvlogFile) >= Log_RotationSize * 1024L))
SetLatch(&sysLoggerLatch);
}
LeaveCriticalSection(&sysloggerSection);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment