Don't forget about failed fsync() requests.
authorThomas Munro
Mon, 19 Nov 2018 00:40:50 +0000 (13:40 +1300)
committerThomas Munro
Mon, 19 Nov 2018 01:26:20 +0000 (14:26 +1300)
commit2b2010d12a62c4b77fdffbd988f5cbbcdcddb98e
tree13fba7eb437c4137e9baea4bc00a0cf363b5c5b7
parent41344896364c4bf2229ec590c95cf23a6bec928e
Don't forget about failed fsync() requests.

If fsync() fails, md.c must keep the request in its bitmap, so that
future attempts will try again.

Back-patch to all supported releases.

Author: Thomas Munro
Reviewed-by: Amit Kapila
Reported-by: Andrew Gierth
Discussion: https://postgr.es/m/87y3i1ia4w.fsf%40news-spur.riddles.org.uk
src/backend/storage/smgr/md.c