]> 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:50:54 +0000 (13:50 +1300)
commita4d6d6a25c12ca9a19a5e7ec6f76115bced69521
tree489a0a9064be66409406053c3cd3096a97ea7da3
parent71b2951ccc433a6dd799efedff9f5927c32440f6
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