pgsql: Fix unlinking of SLRU segments.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix unlinking of SLRU segments.
Date: 2020-11-05 01:18:08
Message-ID: E1kaTui-00078l-NP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)vondra(at)2ndquadrant(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Geoghegan 2020-11-05 02:43:30 pgsql: Fix nbtree cleanup-only VACUUM stats inaccuracies.
Previous Message Tom Lane 2020-11-04 23:11:25 pgsql: Remove underflow error in float division with infinite divisor.