forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0b1020a
committed
pg_waldump: Fix error message for WAL files smaller than XLOG_BLCKSZ.
When opening a WAL file smaller than XLOG_BLCKSZ (e.g. 0 bytes long) whiledetermining the wal_segment_size, pg_waldump checked errno, despite errno notbeing set by the short read. Resulting in a bogus error message.Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Discussion:https://postgr.es/m/20220214.181847.775024684568733277.horikyota.ntt@gmail.comBackpatch: 11-, the bug was introducedinfc49e241 parentc255148 commit0b1020a
1 file changed
+5
-8
lines changedLines changed: 5 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 |
| |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
| 211 | + | |
| 212 | + | |
216 | 213 |
| |
217 | 214 |
| |
218 | 215 |
| |
|
0 commit comments
Comments
(0)