forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita08bfe7
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 parent18f7e85 commita08bfe7
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
1134 | | - | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1135 | 1140 | | |
1136 | 1141 | | |
1137 | 1142 | | |
| |||
0 commit comments
Comments
(0)