aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-08-17 15:12:07 +0000
committerBruce Momjian <bruce@momjian.us>2002-08-17 15:12:07 +0000
commitd04e9137c9fe440a0149738dd717b4fb8c63a60a (patch)
treeafd4c8f0985d645bf4524e426c07c8764d2f410b /src/backend/bootstrap/bootstrap.c
parent7c02c86d0fde8d03a56cb1273b2429f3e9a7192b (diff)
downloadpostgresql-d04e9137c9fe440a0149738dd717b4fb8c63a60a.tar.gz
postgresql-d04e9137c9fe440a0149738dd717b4fb8c63a60a.zip
Reverse out XLogDir/-X write-ahead log handling, per discussion.
Original patch from Thomas.
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r--src/backend/bootstrap/bootstrap.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index d2afa647688..ae4a86d1d42 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.137 2002/08/10 20:29:17 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.138 2002/08/17 15:12:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -222,7 +222,6 @@ BootstrapMain(int argc, char *argv[])
int flag;
int xlogop = BS_XLOG_NOP;
char *potential_DataDir = NULL;
- char *potential_XLogDir = NULL;
/*
* initialize globals
@@ -249,22 +248,17 @@ BootstrapMain(int argc, char *argv[])
if (!IsUnderPostmaster)
{
InitializeGUCOptions();
- /* Null if no PGDATA variable */
- potential_DataDir = getenv("PGDATA");
- /* Null if no PGXLOG variable */
- potential_XLogDir = getenv("PGXLOG");
+ potential_DataDir = getenv("PGDATA"); /* Null if no PGDATA
+ * variable */
}
- while ((flag = getopt(argc, argv, "B:d:D:X:Fo:px:")) != -1)
+ while ((flag = getopt(argc, argv, "B:d:D:Fo:px:")) != -1)
{
switch (flag)
{
case 'D':
potential_DataDir = optarg;
break;
- case 'X':
- potential_XLogDir = optarg;
- break;
case 'd':
{
/* Turn on debugging for the bootstrap process. */
@@ -319,7 +313,6 @@ BootstrapMain(int argc, char *argv[])
proc_exit(1);
}
SetDataDir(potential_DataDir);
- SetXLogDir(potential_XLogDir);
}
/* Validate we have been given a reasonable-looking DataDir */