Don't forget about failed fsync() requests.

Thomas Munro <tmunro@postgresql.org>

Commit: 28117764db7ed0c9fc589dd9323c439235040b05
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2018-11-19T00:40:50Z
Releases: 10.7
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