summaryrefslogtreecommitdiff
path: root/src/backend/postmaster
diff options
context:
space:
mode:
authorTom Lane2005-08-02 20:52:08 +0000
committerTom Lane2005-08-02 20:52:08 +0000
commit6eac4e69cf348fcce13e8d8d63196876bf80d730 (patch)
tree00efe9362a0adba97226011bb2194a13961465b9 /src/backend/postmaster
parent688784f671b39643c43d3a006af19363c1a5c4c6 (diff)
Tweak BgBufferSync() so that a persistent write error on a dirty buffer
doesn't block the bgwriter from making progress writing out other buffers. This was a hard problem in the context of the ARC/2Q design, but it's trivial in the context of clock sweep ... just advance the sweep counter before we try to write not after.
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r--src/backend/postmaster/bgwriter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/postmaster/bgwriter.c b/src/backend/postmaster/bgwriter.c
index d826a6190d..f4158fc89a 100644
--- a/src/backend/postmaster/bgwriter.c
+++ b/src/backend/postmaster/bgwriter.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.17 2005/06/30 00:00:51 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/bgwriter.c,v 1.18 2005/08/02 20:52:08 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -256,8 +256,7 @@ BackgroundWriterMain(void)
/*
* Sleep at least 1 second after any error. A write error is
* likely to be repeated, and we don't want to be filling the
- * error logs as fast as we can. (XXX think about ways to make
- * progress when the LRU dirty buffer cannot be written...)
+ * error logs as fast as we can.
*/
pg_usleep(1000000L);
}