forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit45f5c81
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@antos1 parentdf8b896 commit45f5c81
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1073 | 1073 |
| |
1074 | 1074 |
| |
1075 | 1075 |
| |
| 1076 | + | |
1076 | 1077 |
| |
1077 | 1078 |
| |
1078 | 1079 |
| |
|
0 commit comments
Comments
(0)