Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e68bac

Browse files
gsmolkza-arthur
authored andcommitted
PGPRO-2073: fix missing write_backup
1 parent 5d1f680 commit 4e68bac

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/catalog.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ read_backup(time_t timestamp)
219219
/*
220220
* Save the backup status into BACKUP_CONTROL_FILE.
221221
*
222-
* We need to reread the backup using its ID and save it changing only its
223-
* status.
222+
* We need to reread the backup using its ID and save it changing only its status.
224223
*/
225224
void
226225
write_backup_status(pgBackup *backup)
@@ -230,7 +229,7 @@ write_backup_status(pgBackup *backup)
230229
tmp = read_backup(backup->start_time);
231230
tmp->status = backup->status;
232231

233-
232+
write_backup(tmp);
234233
pgBackupFree(tmp);
235234
}
236235

0 commit comments

Comments
 (0)