forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit856de3b
committed
Add some missing exit() calls in error paths for various binaries
The following changes are done:- In pg_archivecleanup, the cleanup of older WAL segments would neverfail immediately.- In pgbench, the initialization of a thread barrier would not failhard.- In pg_recvlogical, a stat() failure never got the call.- In pg_basebackup, two chmod() reported a failure without exit()'ingwhen unpacking some tar data freshly received. It may be possible tocontinue writing some data even after this failure, but that could beconfusing to the user at the end.These are arguably bugs, but they would happen for code paths where afailure is unlikely going to happen, so no backpatch is done.Reviewed-by: Robert Haas, Fabien CoelhoDiscussion:https://postgr.es/m/YQDMdB+B68yePFeT@paquier.xyz1 parent2ad98fd commit856de3b
File tree
4 files changed
+22
-1
lines changed- src/bin
- pg_archivecleanup
- pg_basebackup
- pgbench
4 files changed
+22
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
| 154 | + | |
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| 160 | + | |
160 | 161 |
| |
161 | 162 |
| |
| 163 | + | |
| 164 | + | |
162 | 165 |
| |
| 166 | + | |
163 | 167 |
| |
164 | 168 |
| |
| 169 | + | |
| 170 | + | |
165 | 171 |
| |
166 | 172 |
| |
| 173 | + | |
167 | 174 |
| |
168 | 175 |
| |
| 176 | + | |
| 177 | + | |
169 | 178 |
| |
170 | 179 |
| |
171 | 180 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1626 | 1626 |
| |
1627 | 1627 |
| |
1628 | 1628 |
| |
| 1629 | + | |
1629 | 1630 |
| |
1630 | 1631 |
| |
| 1632 | + | |
| 1633 | + | |
1631 | 1634 |
| |
1632 | 1635 |
| |
1633 | 1636 |
| |
| |||
1676 | 1679 |
| |
1677 | 1680 |
| |
1678 | 1681 |
| |
| 1682 | + | |
1679 | 1683 |
| |
1680 | 1684 |
| |
| 1685 | + | |
| 1686 | + | |
1681 | 1687 |
| |
1682 | 1688 |
| |
1683 | 1689 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
| 344 | + | |
344 | 345 |
| |
| 346 | + | |
| 347 | + | |
345 | 348 |
| |
346 | 349 |
| |
347 | 350 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6469 | 6469 |
| |
6470 | 6470 |
| |
6471 | 6471 |
| |
| 6472 | + | |
6472 | 6473 |
| |
| 6474 | + | |
| 6475 | + | |
6473 | 6476 |
| |
6474 | 6477 |
| |
6475 | 6478 |
| |
|
0 commit comments
Comments
(0)