- Notifications
You must be signed in to change notification settings - Fork28
Commit769fd9d
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 parent19acee8 commit769fd9d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
976 | 976 | | |
977 | 977 | | |
978 | 978 | | |
| 979 | + | |
979 | 980 | | |
980 | 981 | | |
981 | 982 | | |
| |||
0 commit comments
Comments
(0)