forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit28cc297
committed
Use pg_pwrite_zeros() in walmethods.c
This change impacts pg_receivewal and pg_basebackup, for the pre-paddingwith zeros of all the new non-compressed WAL segments, so as the code ismore robust on partial writes. This makes the code consistent with thebackend (XLogFileInitInternal) when wal_init_zeros is enabled for theWAL segment initialization.Author: Bharath RupireddyReviewed-by: Nathan Bossart, Andres Freund, Thomas Munro, MichaelPaquierDiscussion:https://postgr.es/m/CALj2ACUq7nAb7=bJNbK3yYmp-SZhJcXFR_pLk8un6XgDzDF3OA@mail.gmail.com1 parent3bdbdf5 commit28cc297
1 file changed
+11
-12
lines changedLines changed: 11 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
220 | 220 |
| |
221 | 221 |
| |
222 | 222 |
| |
223 |
| - | |
224 |
| - | |
| 223 | + | |
225 | 224 |
| |
226 |
| - | |
227 |
| - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
228 | 228 |
| |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
237 | 232 |
| |
238 | 233 |
| |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
239 | 238 |
| |
240 | 239 |
| |
241 | 240 |
| |
|
0 commit comments
Comments
(0)