Skip to content

Commit 0f04fc6

Browse files
fsync backup_label after pg_start_backup()
Dave Kerr
1 parent b112df8 commit 0f04fc6

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
@@ -9346,6 +9346,7 @@ do_pg_start_backup(const char *backupidstr, bool fast, char **labelfile)
93469346
BACKUP_LABEL_FILE)));
93479347
if (fwrite(labelfbuf.data, labelfbuf.len, 1, fp) != 1 ||
93489348
fflush(fp) != 0 ||
9349+
pg_fsync(fileno(fp)) != 0 ||
93499350
ferror(fp) ||
93509351
FreeFile(fp))
93519352
ereport(ERROR,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy