forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0278d3f
committed
Fix bogus tar-file padding logic for standby.signal.
When pg_basebackup -R is used, we inject standby.signal into thetar file for the main tablespace. The proper thing to do is to padeach file injected into the tar file out to a 512-byte boundaryby appending nulls, but here the file is of length 0 and we add511 zero bytes. Since 0 is already a multiple of 512, we shouldnot add any zero bytes. Do that instead.Patch by me, reviewed by Tom Lane.Discussion:http://postgr.es/m/CA+TgmobWbfReO9-XFk8urR1K4wTNwqoHx_v56t7=T8KaiEoKNw@mail.gmail.com1 parente81e574 commit0278d3f
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1207 | 1207 |
| |
1208 | 1208 |
| |
1209 | 1209 |
| |
1210 |
| - | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
1211 | 1216 |
| |
1212 | 1217 |
| |
1213 | 1218 |
| |
|
0 commit comments
Comments
(0)