From 52392f7623ae998c746af874107403b0ad9bdf18 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 21 Jan 2003 19:51:42 +0000 Subject: [PATCH] Back-patch fix to ensure pg_clog updates are not only written but sync'ed before we consider the checkpoint to be done. --- src/backend/access/transam/xlog.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index a5f168cbf7..be67fd9103 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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. -- 2.39.5