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