| From: | Fujii Masao <fujii(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add missing FreeDir() in CheckTablespaceDirectory() |
| Date: | 2026-10-14 02:15:40 |
| Message-ID: | E1xGoWq-00000001WjH-3Dwr@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add missing FreeDir() in CheckTablespaceDirectory()
CheckTablespaceDirectory() did not close the directory opened with
AllocateDir(), leaving its resources held during subsequent recovery,
potentially indefinitely on a standby. Add the missing FreeDir() call.
Backpatch to all supported versions.
Author: Chao Li <lic(at)highgo(dot)com>
Reviewed-by: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Discussion: https://postgr.es/m/66A784B7-55C1-4613-8C24-B4C2A8D75414@gmail.com
Backpatch-through: 14
Branch
------
REL_15_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/a56f246c6d3ccc49733a86739198743bb78d6481
Modified Files
--------------
src/backend/access/transam/xlogrecovery.c | 1 +
1 file changed, 1 insertion(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-10-14 02:15:51 | pgsql: Add missing FreeDir() in CheckTablespaceDirectory() |
| Previous Message | Fujii Masao | 2026-10-14 02:15:30 | pgsql: Add missing FreeDir() in CheckTablespaceDirectory() |