You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-17 07:22:20 +02:00
Initialize backup_cleanup() earlier
This commit is contained in:
6
backup.c
6
backup.c
@ -432,14 +432,14 @@ do_backup(void)
|
|||||||
|
|
||||||
elog(LOG, "Backup destination is initialized");
|
elog(LOG, "Backup destination is initialized");
|
||||||
|
|
||||||
|
/* set the error processing function for the backup process */
|
||||||
|
pgut_atexit_push(backup_cleanup, NULL);
|
||||||
|
|
||||||
/* get list of backups already taken */
|
/* get list of backups already taken */
|
||||||
backup_list = catalog_get_backup_list(INVALID_BACKUP_ID);
|
backup_list = catalog_get_backup_list(INVALID_BACKUP_ID);
|
||||||
if (backup_list == NULL)
|
if (backup_list == NULL)
|
||||||
elog(ERROR, "Failed to get backup list.");
|
elog(ERROR, "Failed to get backup list.");
|
||||||
|
|
||||||
/* set the error processing function for the backup process */
|
|
||||||
pgut_atexit_push(backup_cleanup, NULL);
|
|
||||||
|
|
||||||
/* backup data */
|
/* backup data */
|
||||||
do_backup_database(backup_list);
|
do_backup_database(backup_list);
|
||||||
pgut_atexit_pop(backup_cleanup, NULL);
|
pgut_atexit_pop(backup_cleanup, NULL);
|
||||||
|
Reference in New Issue
Block a user