From b2ab1e6bc9a61a2e5add59da298ec755ba75ab5c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 26 Sep 2002 22:58:34 +0000 Subject: Ensure that before truncating CLOG, we force a checkpoint even if no recent WAL activity has occurred. Without this, it's possible that a later crash might leave tuples on disk with un-updated commit status bits. --- src/backend/bootstrap/bootstrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/bootstrap/bootstrap.c') diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c index 4df563b4285..a2b26bcdb00 100644 --- a/src/backend/bootstrap/bootstrap.c +++ b/src/backend/bootstrap/bootstrap.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.143 2002/09/25 20:31:40 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.144 2002/09/26 22:58:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -390,7 +390,7 @@ BootstrapMain(int argc, char *argv[]) case BS_XLOG_CHECKPOINT: CreateDummyCaches(); - CreateCheckPoint(false); + CreateCheckPoint(false, false); SetSavedRedoRecPtr(); /* pass redo ptr back to * postmaster */ proc_exit(0); /* done */ @@ -445,7 +445,7 @@ BootstrapMain(int argc, char *argv[]) Int_yyparse(); SetProcessingMode(NormalProcessing); - CreateCheckPoint(true); + CreateCheckPoint(true, true); SetProcessingMode(BootstrapProcessing); /* clean up processing */ -- cgit v1.2.3