Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8d5e03

Browse files
committed
Get list of backups in do_backup() as soon as possible
1 parent2bdaaf0 commitc8d5e03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎backup.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ do_backup(void)
432432
*/
433433
check_system_identifiers();
434434

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+
435440
elog(LOG,"Backup start. backup-mode = %s, stream = %s",
436441
pgBackupGetBackupMode(&current),current.stream ?"true" :"false");
437442

@@ -449,11 +454,6 @@ do_backup(void)
449454
/* set the error processing function for the backup process */
450455
pgut_atexit_push(backup_cleanup,NULL);
451456

452-
/* get list of backups already taken */
453-
backup_list=catalog_get_backup_list(INVALID_BACKUP_ID);
454-
if (backup_list==NULL)
455-
elog(ERROR,"Failed to get backup list.");
456-
457457
/* backup data */
458458
do_backup_database(backup_list);
459459
pgut_atexit_pop(backup_cleanup,NULL);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp