- Notifications
You must be signed in to change notification settings - Fork5
Commit6f79ae7
committed
reorderbuffer: preserve errno while reporting error
Clobbering errno during cleanup after an error is an oft-repeated, easyto make mistake. Deal with it here as everywhere else, by saving itaside and restoring after cleanup, before ereport'ing.In passing, add a missing errcode declaration in another ereport() callin the same file, which I noticed while skimming the file looking forsimilar problems.Backpatch to 9.4, where this code was introduced.1 parenta859e64 commit6f79ae7
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
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
Comments
(0)