Content-Length: 255961 | pFad | http://github.com/postgrespro/postgres/commit/0f04fc67f71f7cb29ccedb2e7ddf443b9e52b958

AD fsync backup_label after pg_start_backup() · postgrespro/postgres@0f04fc6 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/0f04fc67f71f7cb29ccedb2e7ddf443b9e52b958

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy