Skip to content
Snippets Groups Projects
Commit 168d3157 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 f64315c6
Branches
Tags
No related merge requests found
......@@ -1064,10 +1064,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