Commit 6f79ae7
committed
reorderbuffer: preserve errno while reporting error
Clobbering errno during cleanup after an error is an oft-repeated, easy
to make mistake. Deal with it here as everywhere else, by saving it
aside and restoring after cleanup, before ereport'ing.
In passing, add a missing errcode declaration in another ereport() call
in the same file, which I noticed while skimming the file looking for
similar problems.
Backpatch to 9.4, where this code was introduced.1 parent a859e64 commit 6f79ae7
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2317 | 2317 | | |
2318 | 2318 | | |
2319 | 2319 | | |
| 2320 | + | |
| 2321 | + | |
2320 | 2322 | | |
| 2323 | + | |
2321 | 2324 | | |
2322 | 2325 | | |
2323 | 2326 | | |
| |||
3070 | 3073 | | |
3071 | 3074 | | |
3072 | 3075 | | |
3073 | | - | |
| 3076 | + | |
| 3077 | + | |
3074 | 3078 | | |
3075 | 3079 | | |
3076 | 3080 | | |
| |||
0 commit comments