pgsql: Don't forget about failed fsync() requests. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Don't forget about failed fsync() requests.
Date
Msg-id E1gObQs-00022s-6q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/542e6f3861cee1a5bd2974c318d2e05cc95d8a63

Modified Files
--------------
src/backend/storage/smgr/md.c | 23 ++++++++++++++++++-----
1 file changed, 18 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Don't forget about failed fsync() requests.
Next
From: Thomas Munro
Date:
Subject: pgsql: Don't forget about failed fsync() requests.