File tree Expand file tree Collapse file tree 2 files changed +15
-16
lines changed
Expand file tree Collapse file tree 2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 44 *
55 * Originally by
66 * B. Palmer, bpalmer@crimelabs.net 1-17-2001
7- * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.30 2006/10/19 20:38:48 tgl Exp $
7+ * $PostgreSQL: pgsql/contrib/oid2name/oid2name.c,v 1.31 2007/07/15 22:54:20 tgl Exp $
88 */
99#include "postgres_fe.h"
1010
@@ -575,5 +575,5 @@ main(int argc, char **argv)
575575 sql_exec_dumpalldbs (pgconn , my_opts );
576576
577577 PQfinish (pgconn );
578- exit ( 0 ) ;
578+ return 0 ;
579579}
Original file line number Diff line number Diff line change @@ -605,18 +605,17 @@ main(int argc, char **argv)
605605 */
606606 if (triggered )
607607 exit (1 ); /* Normal exit, with non-zero */
608- else
609- {
610- /*
611- * Once we have restored this file successfully we
612- * can remove some prior WAL files.
613- * If this restore fails we musn't remove any
614- * file because some of them will be requested again
615- * immediately after the failed restore, or when
616- * we restart recovery.
617- */
618- if (RestoreWALFileForRecovery ())
619- CustomizableCleanupPriorWALFiles ();
620- exit (0 );
621- }
608+
609+ /*
610+ * Once we have restored this file successfully we
611+ * can remove some prior WAL files.
612+ * If this restore fails we musn't remove any
613+ * file because some of them will be requested again
614+ * immediately after the failed restore, or when
615+ * we restart recovery.
616+ */
617+ if (RestoreWALFileForRecovery ())
618+ CustomizableCleanupPriorWALFiles ();
619+
620+ return 0 ;
622621}
You can’t perform that action at this time.
0 commit comments