Commit 168d3157 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Also fix rotation of csvlog on Windows.

Backpatch to 9.2, like the previous fix.
parent f64315c6
...@@ -1064,10 +1064,12 @@ pipeThread(void *arg) ...@@ -1064,10 +1064,12 @@ pipeThread(void *arg)
* If we've filled the current logfile, nudge the main thread to do a * If we've filled the current logfile, nudge the main thread to do a
* log rotation. * log rotation.
*/ */
if (Log_RotationSize > 0 && if (Log_RotationSize > 0)
ftell(syslogFile) >= Log_RotationSize * 1024L) {
if (ftell(syslogFile) >= Log_RotationSize * 1024L ||
(csvlogFile != NULL && ftell(csvlogFile) >= Log_RotationSize * 1024L))
SetLatch(&sysLoggerLatch); SetLatch(&sysLoggerLatch);
}
LeaveCriticalSection(&sysloggerSection); LeaveCriticalSection(&sysloggerSection);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment