- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit08fdfe7
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 parent0499bd2 commit08fdfe7
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
868 | 868 |
| |
869 | 869 |
| |
870 | 870 |
| |
| 871 | + | |
871 | 872 |
| |
872 | 873 |
| |
873 | 874 |
| |
|
0 commit comments
Comments
(0)