pgsql: Add missing FreeDir() in CheckTablespaceDirectory()
pgsql: Add missing FreeDir() in CheckTablespaceDirectory()
От:
Fujii Masao <fujii@postgresql.org>
Дата:
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 Reviewed-by: Fujii Masao Discussion: https://postgr.es/m/66A784B7-55C1-4613-8C24-B4C2A8D75414@gmail.com Backpatch-through: 14 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c5e6dd73636dbb682852d95c55cb6bb0ad364ec5 Modified Files -------------- src/backend/access/transam/xlogrecovery.c | 1 + 1 file changed, 1 insertion(+)