Don't forget about failed fsync() requests.

Thomas Munro <tmunro@postgresql.org>

Commit: 542e6f3861cee1a5bd2974c318d2e05cc95d8a63
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-11-19T00:37:49Z
Releases: 11.2
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

Files

PathChange+/−
src/backend/storage/smgr/md.c modified +18 −5

Discussion