We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent2bdaaf0 commitc8d5e03Copy full SHA for c8d5e03
backup.c
@@ -432,6 +432,11 @@ do_backup(void)
432
*/
433
check_system_identifiers();
434
435
+/* get list of backups already taken */
436
+backup_list=catalog_get_backup_list(INVALID_BACKUP_ID);
437
+if (backup_list==NULL)
438
+elog(ERROR,"Failed to get backup list.");
439
+
440
elog(LOG,"Backup start. backup-mode = %s, stream = %s",
441
pgBackupGetBackupMode(¤t),current.stream ?"true" :"false");
442
@@ -449,11 +454,6 @@ do_backup(void)
449
454
/* set the error processing function for the backup process */
450
455
pgut_atexit_push(backup_cleanup,NULL);
451
456
452
-/* get list of backups already taken */
453
-backup_list=catalog_get_backup_list(INVALID_BACKUP_ID);
-if (backup_list==NULL)
-elog(ERROR,"Failed to get backup list.");
-
457
/* backup data */
458
do_backup_database(backup_list);
459
pgut_atexit_pop(backup_cleanup,NULL);