pgsql: Fix mdsyncfiletag(), take II. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Fix mdsyncfiletag(), take II.
Date
Msg-id E1ig0cG-0008HI-RI@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix mdsyncfiletag(), take II.

The previous commit failed to consider that FileGetRawDesc() might
not return a valid fd, as discovered on the build farm.  Switch to
using the File interface only.

Back-patch to 12, like the previous commit.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7c85be08a2d404ec2a1a6a3b089e7f08d62e5db8

Modified Files
--------------
src/backend/storage/smgr/md.c | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Don't use _mdfd_getseg() in mdsyncfiletag().
Next
From: Thomas Munro
Date:
Subject: pgsql: Fix mdsyncfiletag(), take II.