Skip to content

Commit c47af35

Browse files
committed
Initialize backup_cleanup() earlier
1 parent 1c87d61 commit c47af35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,14 +432,14 @@ do_backup(void)
432432

433433
elog(LOG, "Backup destination is initialized");
434434

435+
/* set the error processing function for the backup process */
436+
pgut_atexit_push(backup_cleanup, NULL);
437+
435438
/* get list of backups already taken */
436439
backup_list = catalog_get_backup_list(INVALID_BACKUP_ID);
437440
if (backup_list == NULL)
438441
elog(ERROR, "Failed to get backup list.");
439442

440-
/* set the error processing function for the backup process */
441-
pgut_atexit_push(backup_cleanup, NULL);
442-
443443
/* backup data */
444444
do_backup_database(backup_list);
445445
pgut_atexit_pop(backup_cleanup, NULL);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy