mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-05 13:20:31 +02:00
PGPRO-2073: fix missing write_backup
This commit is contained in:
parent
5d1f680c48
commit
4e68bac2f8
@ -219,8 +219,7 @@ read_backup(time_t timestamp)
|
||||
/*
|
||||
* Save the backup status into BACKUP_CONTROL_FILE.
|
||||
*
|
||||
* We need to reread the backup using its ID and save it changing only its
|
||||
* status.
|
||||
* We need to reread the backup using its ID and save it changing only its status.
|
||||
*/
|
||||
void
|
||||
write_backup_status(pgBackup *backup)
|
||||
@ -230,7 +229,7 @@ write_backup_status(pgBackup *backup)
|
||||
tmp = read_backup(backup->start_time);
|
||||
tmp->status = backup->status;
|
||||
|
||||
|
||||
write_backup(tmp);
|
||||
pgBackupFree(tmp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user