mirror of
https://github.com/postgres/postgres.git
synced 2026-05-28 04:35:45 -04:00
Also fix rotation of csvlog on Windows.
Backpatch to 9.2, like the previous fix.
This commit is contained in:
parent
14ba9b11ea
commit
3cef2179e0
1 changed files with 6 additions and 4 deletions
|
|
@ -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)
|
||||
SetLatch(&sysLoggerLatch);
|
||||
|
||||
if (Log_RotationSize > 0)
|
||||
{
|
||||
if (ftell(syslogFile) >= Log_RotationSize * 1024L ||
|
||||
(csvlogFile != NULL && ftell(csvlogFile) >= Log_RotationSize * 1024L))
|
||||
SetLatch(&sysLoggerLatch);
|
||||
}
|
||||
LeaveCriticalSection(&sysloggerSection);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue