]> granicus.if.org Git - postgresql/commit
Don't forget about failed fsync() requests.
authorThomas Munro <tmunro@postgresql.org>
Mon, 19 Nov 2018 00:40:50 +0000 (13:40 +1300)
committerThomas Munro <tmunro@postgresql.org>
Mon, 19 Nov 2018 00:40:50 +0000 (13:40 +1300)
commit28117764db7ed0c9fc589dd9323c439235040b05
tree317b9e9f64e7954fcfb9fcf3139e0fc8e5dad940
parent5b16a353543ecec36ffda68269defb7b1b002f60
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