mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Change a couple of exit(0) to return 0 to suppress complaints from
not-too-bright compilers. Per buildfarm results.
This commit is contained in:
@ -605,18 +605,17 @@ main(int argc, char **argv)
|
||||
*/
|
||||
if (triggered)
|
||||
exit(1); /* Normal exit, with non-zero */
|
||||
else
|
||||
{
|
||||
/*
|
||||
* Once we have restored this file successfully we
|
||||
* can remove some prior WAL files.
|
||||
* If this restore fails we musn't remove any
|
||||
* file because some of them will be requested again
|
||||
* immediately after the failed restore, or when
|
||||
* we restart recovery.
|
||||
*/
|
||||
if (RestoreWALFileForRecovery())
|
||||
CustomizableCleanupPriorWALFiles();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Once we have restored this file successfully we
|
||||
* can remove some prior WAL files.
|
||||
* If this restore fails we musn't remove any
|
||||
* file because some of them will be requested again
|
||||
* immediately after the failed restore, or when
|
||||
* we restart recovery.
|
||||
*/
|
||||
if (RestoreWALFileForRecovery())
|
||||
CustomizableCleanupPriorWALFiles();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user