pgsql: Fix mdsyncfiletag(), take II.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix mdsyncfiletag(), take II.
Date: 2019-12-14 06:09:38
Message-ID: E1ig0cU-0008Hv-U5@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL_12_STABLE

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

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-12-14 09:18:18 pgsql: Fix memory leak when initializing DH parameters in backend
Previous Message Thomas Munro 2019-12-14 06:09:24 pgsql: Fix mdsyncfiletag(), take II.