forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f47e83
committed
Fix alignment problem with bbsink_copystream buffer.
bbsink_copystream wants to store a type byte just before the buffer,but basebackup.c wants the buffer to be aligned so that it can callPageIsNew() and PageGetLSN() on it. Therefore, instead of inserting1 extra byte before the buffer, insert MAXIMUM_ALIGNOF extra bytesand only use the last one.On most machines this doesn't cause any problem (except perhaps forperformance) but some buildfarm machines with -fsanitize=alignmentdump core.Discussion:http://postgr.es/m/CA+TgmoYx5=1A2K9JYV-9zdhyokU4KKTyNQ9q7CiXrX=YBBMWVw@mail.gmail.com1 parent44129c0 commit0f47e83
1 file changed
+11
-7
lines changedLines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
| 155 | + | |
155 | 156 |
| |
156 | 157 |
| |
157 | 158 |
| |
158 | 159 |
| |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 |
| |
165 |
| - | |
166 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
167 | 171 |
| |
168 | 172 |
| |
169 | 173 |
| |
|
0 commit comments
Comments
(0)