diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-21 19:51:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-01-21 19:51:42 +0000 |
commit | adf852ba4a016a39887985910884a143806d66dd (patch) | |
tree | 2dc06a166dc0fcdbcbf00fc6b9248348e96f98a4 /src/backend/access/transam | |
parent | 0c3cf7924420173342d64da490b7a4e95c7e119b (diff) | |
download | postgresql-adf852ba4a016a39887985910884a143806d66dd.tar.gz |
Back-patch fix to ensure pg_clog updates are not only written but sync'ed
before we consider the checkpoint to be done.
Diffstat (limited to 'src/backend/access/transam')
-rw-r--r-- | src/backend/access/transam/xlog.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 77e1f0a936..c8aef1ad9d 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.86.2.2 2002/09/30 19:55:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.86.2.3 2003/01/21 19:51:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -3052,12 +3052,10 @@ CreateCheckPoint(bool shutdown, bool force) /* * Having constructed the checkpoint record, ensure all shmem disk - * buffers are flushed to disk. + * buffers and commit-log buffers are flushed to disk. */ - FlushBufferPool(); - - /* And commit-log buffers, too */ CheckPointCLOG(); + FlushBufferPool(); /* * Now insert the checkpoint record into XLOG. |