Fix mdsyncfiletag(), take II.
authorThomas Munro <tmunro@postgresql.org>
Sat, 14 Dec 2019 04:38:09 +0000 (17:38 +1300)
committerThomas Munro <tmunro@postgresql.org>
Sat, 14 Dec 2019 05:35:58 +0000 (18:35 +1300)
commit7c85be08a2d404ec2a1a6a3b089e7f08d62e5db8
treef9d94448f5422f923511b82ced949dfc03bde132
parent7bb3102cea02101efcbb4c4fba3fdd452a52bdab
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.
src/backend/storage/smgr/md.c