Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit393b070

Browse files
fsync backup_label after pg_start_backup()
Dave Kerr
1 parent73a7a64 commit393b070

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)

[8]ページ先頭

©2009-2025 Movatter.jp