forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commit9cb7db3
committed
In AtEOXact_Files, complain if any files remain unclosed at commit.
This change makes this module act more like most of our other low-levelresource management modules. It's a caller error if something is notexplicitly closed by the end of a successful transaction, so issuea WARNING about it. This would not actually have caught the file leakbug fixed in commit231bcd0, because that was in a transaction-abortpath; but it still seems like a good, and pretty cheap, cross-check.Discussion:https://postgr.es/m/152056616579.4966.583293218357089052@wrigleys.postgresql.org1 parentcfffe83 commit9cb7db3
File tree
7 files changed
+29
-19
lines changed- src
- backend
- access/transam
- postmaster
- storage/file
- include/storage
7 files changed
+29
-19
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2123 | 2123 |
| |
2124 | 2124 |
| |
2125 | 2125 |
| |
2126 |
| - | |
| 2126 | + | |
2127 | 2127 |
| |
2128 | 2128 |
| |
2129 | 2129 |
| |
| |||
2401 | 2401 |
| |
2402 | 2402 |
| |
2403 | 2403 |
| |
2404 |
| - | |
| 2404 | + | |
2405 | 2405 |
| |
2406 | 2406 |
| |
2407 | 2407 |
| |
| |||
2603 | 2603 |
| |
2604 | 2604 |
| |
2605 | 2605 |
| |
2606 |
| - | |
| 2606 | + | |
2607 | 2607 |
| |
2608 | 2608 |
| |
2609 | 2609 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
534 |
| - | |
| 534 | + | |
535 | 535 |
| |
536 | 536 |
| |
537 | 537 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
| 201 | + | |
202 | 202 |
| |
203 | 203 |
| |
204 | 204 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
285 |
| - | |
| 285 | + | |
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
|
Lines changed: 21 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
317 |
| - | |
| 317 | + | |
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
| |||
2902 | 2902 |
| |
2903 | 2903 |
| |
2904 | 2904 |
| |
2905 |
| - | |
2906 |
| - | |
2907 |
| - | |
2908 |
| - | |
2909 |
| - | |
2910 |
| - | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
2911 | 2913 |
| |
2912 | 2914 |
| |
2913 |
| - | |
| 2915 | + | |
2914 | 2916 |
| |
2915 |
| - | |
| 2917 | + | |
2916 | 2918 |
| |
2917 | 2919 |
| |
2918 | 2920 |
| |
| |||
2926 | 2928 |
| |
2927 | 2929 |
| |
2928 | 2930 |
| |
2929 |
| - | |
| 2931 | + | |
2930 | 2932 |
| |
2931 | 2933 |
| |
2932 | 2934 |
| |
2933 | 2935 |
| |
2934 | 2936 |
| |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
2935 | 2940 |
| |
2936 | 2941 |
| |
2937 | 2942 |
| |
2938 | 2943 |
| |
2939 | 2944 |
| |
2940 | 2945 |
| |
2941 | 2946 |
| |
2942 |
| - | |
| 2947 | + | |
2943 | 2948 |
| |
2944 | 2949 |
| |
2945 | 2950 |
| |
| |||
2979 | 2984 |
| |
2980 | 2985 |
| |
2981 | 2986 |
| |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
2982 | 2992 |
| |
2983 | 2993 |
| |
2984 | 2994 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 |
| - | |
| 126 | + | |
127 | 127 |
| |
128 | 128 |
| |
129 | 129 |
| |
|
0 commit comments
Comments
(0)