Commit 9ab1872e authored by Bruce Momjian's avatar Bruce Momjian

Have pg_resetxlog -n return zero exit status.

parent 8ae53160
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.14 2002/01/10 23:40:58 momjian Exp $ * $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.15 2002/01/10 23:46:13 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -585,8 +585,12 @@ main(int argc, char **argv) ...@@ -585,8 +585,12 @@ main(int argc, char **argv)
{ {
PrintControlValues(guessed); PrintControlValues(guessed);
if (!noupdate) if (!noupdate)
{
printf("\nIf these values seem acceptable, use -f to force reset.\n"); printf("\nIf these values seem acceptable, use -f to force reset.\n");
exit(1); exit(1);
}
else
exit(0);
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment