]> granicus.if.org Git - postgresql/commit
Don't forget about failed fsync() requests.
authorThomas Munro <tmunro@postgresql.org>
Mon, 19 Nov 2018 00:30:58 +0000 (13:30 +1300)
committerThomas Munro <tmunro@postgresql.org>
Mon, 19 Nov 2018 04:41:26 +0000 (17:41 +1300)
commit1556cb2fc5c774c3f7390dd6fb19190ee0c73f8b
tree4c768634d07bd4e83f09f0326bcde634875a2b31
parent74171f8c12e68408f1fa895fdee36fdc8b0a9f79
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