- Notifications
You must be signed in to change notification settings - Fork5
Commit26ce63c
committed
Fix mdtruncate() to close fd.c handle of deleted segments.
mdtruncate() forgot to FileClose() a segment's mdfd_vfd, when deletingit. That lead to a fd.c handle to a truncated file being kept open untilbackend exit.The issue appears to have been introduced way back in1a5c450,before that the handle was closed inside FileUnlink().The impact of this bug is limited - only VACUUM and ON COMMIT TRUNCATEfor temporary tables, truncate files in place (i.e. TRUNCATE itself isnot affected), and the relation has to be bigger than 1GB. Theconsequences of a leaked fd.c handle aren't severe either.Discussion: <20160908220748.oqh37ukwqqncbl3n@alap3.anarazel.de>Backpatch: all supported releases1 parent142a110 commit26ce63c
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
918 | 918 |
| |
919 | 919 |
| |
920 | 920 |
| |
| 921 | + | |
921 | 922 |
| |
922 | 923 |
| |
923 | 924 |
| |
|
0 commit comments
Comments
(0)