Fix mdsyncfiletag(), take II.

Thomas Munro <tmunro@postgresql.org>

Commit: fd005e1a87446ad61a6c950841b0a6f93bdfb594
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2019-12-14T06:03:44Z
Releases: 12.2
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.

Files

PathChange+/−
src/backend/storage/smgr/md.c modified +9 −16