Skip to content

Commit 393b070

Browse files
fsync backup_label after pg_start_backup()
Dave Kerr
1 parent 73a7a64 commit 393b070

File tree

1 file changed

+1
-0
lines changed
  • src/backend/access/transam

1 file changed

+1
-0
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9350,6 +9350,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, char **labelfile)
93509350
BACKUP_LABEL_FILE)));
93519351
if (fwrite(labelfbuf.data, labelfbuf.len, 1, fp) != 1 ||
93529352
fflush(fp) != 0 ||
9353+
pg_fsync(fileno(fp)) != 0 ||
93539354
ferror(fp) ||
93549355
FreeFile(fp))
93559356
ereport(ERROR,

0 commit comments

Comments
 (0)