1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

Change PG_DELAY from msec to usec and use it consistenly rather than

select().   Add Win32 Sleep() for delay.
This commit is contained in:
Bruce Momjian
2004-01-09 21:08:50 +00:00
parent a76c86c7c1
commit 38081fd000
4 changed files with 31 additions and 36 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.151 2004/01/07 18:56:27 neilc Exp $
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.152 2004/01/09 21:08:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1031,9 +1031,7 @@ BufferBackgroundWriter(void)
* there was nothing to do at all.
*/
if (n > 0)
{
PG_DELAY(BgWriterDelay);
}
PG_USLEEP(BgWriterDelay * 1000);
else
sleep(10);
}