Обсуждение: pgsql: Fix unlinking of SLRU segments.

Поиск
Список
Период
Сортировка

pgsql: Fix unlinking of SLRU segments.

От
Thomas Munro
Дата:
Fix unlinking of SLRU segments.

Commit dee663f7 intended to drop any queued up fsync requests before
unlinking segment files, but missed a code path.  Fix, by centralizing
the forget-and-unlink code into a single function.

Reported-by: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Discussion: https://postgr.es/m/20201104013205.icogbi773przyny5%40development

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c732c3f8c122009de373cff9b44b5cf0992ba1bf

Modified Files
--------------
src/backend/access/transam/slru.c | 44 ++++++++++++++++-----------------------
1 file changed, 18 insertions(+), 26 deletions(-)