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

Commit45f5c81

Browse files
committed
Fix failure to advance content pointer in sendFileWithContent.
If sendFileWithContent were used to send a file larger than thebbsink buffer size, this would result in corruption. The onlyfiles that are sent via sendFileWithContent are the backup labelfile, the tablespace map file, and .done files for WAL segmentsincluded in the backup. Of these, it seems that only thetablespace_map file can become large enough to cause a problem,and then only if you have a lot of tablespaces. If you do havethat situation, you might end up with a corruptedtablespace_map file, which would be bad.My commitbef47ff introducedthis problem.Report and patch by Antonin Houska.Discussion:http://postgr.es/m/15764.1670528645@antos
1 parentdf8b896 commit45f5c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/backup/basebackup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,7 @@ sendFileWithContent(bbsink *sink, const char *filename, const char *content,
10731073
memcpy(sink->bbs_buffer,content,nbytes);
10741074
bbsink_archive_contents(sink,nbytes);
10751075
bytes_done+=nbytes;
1076+
content+=nbytes;
10761077
}
10771078

10781079
_tarWritePadding(sink,len);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp