mirror of
https://github.com/postgres/postgres.git
synced 2026-02-20 00:10:16 -05:00
fsync backup_label after pg_start_backup()
Dave Kerr
This commit is contained in:
parent
b112df8421
commit
0f04fc67f7
1 changed files with 1 additions and 0 deletions
|
|
@ -9346,6 +9346,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, char **labelfile)
|
|||
BACKUP_LABEL_FILE)));
|
||||
if (fwrite(labelfbuf.data, labelfbuf.len, 1, fp) != 1 ||
|
||||
fflush(fp) != 0 ||
|
||||
pg_fsync(fileno(fp)) != 0 ||
|
||||
ferror(fp) ||
|
||||
FreeFile(fp))
|
||||
ereport(ERROR,
|
||||
|
|
|
|||
Loading…
Reference in a new issue