]> git.ipfire.org Git - thirdparty/postgresql.git/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 01:07:19 +0000 (14:07 +1300)
commita4a4aede5fabe6d94bd9b6445725db0c57eecd9b
tree23773e69742e17fda068f56d19fa62123c50ba2a
parentf57b94d9d0bbf42a18690d820f884dc0fc6bf79e
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