Fix unlinking of SLRU segments.
authorThomas Munro <tmunro@postgresql.org>
Thu, 5 Nov 2020 00:45:32 +0000 (13:45 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 5 Nov 2020 00:49:49 +0000 (13:49 +1300)
commitc732c3f8c122009de373cff9b44b5cf0992ba1bf
tree93f504f919bd8cb4119306bea1cb9a01fe765a2b
parentfac83dbd6fe1ac3d4125bfa39f287f95bffe6cda
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
src/backend/access/transam/slru.c