Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ab1872

Browse files
committed
Have pg_resetxlog -n return zero exit status.
1 parent8ae5316 commit9ab1872

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎contrib/pg_resetxlog/pg_resetxlog.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.14 2002/01/10 23:40:58 momjian Exp $
26+
* $Header: /cvsroot/pgsql/contrib/pg_resetxlog/Attic/pg_resetxlog.c,v 1.15 2002/01/10 23:46:13 momjian Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -585,8 +585,12 @@ main(int argc, char **argv)
585585
{
586586
PrintControlValues(guessed);
587587
if (!noupdate)
588+
{
588589
printf("\nIf these values seem acceptable, use -f to force reset.\n");
589-
exit(1);
590+
exit(1);
591+
}
592+
else
593+
exit(0);
590594
}
591595

592596
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp