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
No related branches found
No related tags found
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)
SetLatch(&sysLoggerLatch);
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.
Finish editing this message first!
Please register or to comment