1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Fix things so that an error occuring during standalone-backend processing

in initdb will result in exit(1), allowing the initdb script to realize
that there's something wrong.
This commit is contained in:
Tom Lane
2003-05-28 18:19:09 +00:00
parent aae078198d
commit 4df52b28f0
6 changed files with 44 additions and 23 deletions

View File

@ -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.159 2003/05/28 16:03:55 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.160 2003/05/28 18:19:09 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -838,7 +838,7 @@ BootstrapAlreadySeen(Oid id)
* ----------------
*/
static void
cleanup()
cleanup(void)
{
static int beenhere = 0;
@ -846,13 +846,13 @@ cleanup()
beenhere = 1;
else
{
elog(FATAL, "Memory manager fault: cleanup called twice.\n");
elog(FATAL, "Memory manager fault: cleanup called twice");
proc_exit(1);
}
if (boot_reldesc != NULL)
closerel(NULL);
CommitTransactionCommand();
proc_exit(Warnings);
proc_exit(Warnings ? 1 : 0);
}
/* ----------------