]> granicus.if.org Git - postgresql/commit
Correct handling of fsync failures with tar mode of walmethods.c
authorMichael Paquier <michael@paquier.xyz>
Tue, 26 Jun 2018 00:41:58 +0000 (09:41 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 26 Jun 2018 00:41:58 +0000 (09:41 +0900)
commitd08c3d5197fac1f49cedbd8417e685479ad7439a
tree233e841e8081fb494542898b442e5887f34fd2fc
parent322548a8abe225f2cfd6a48e07b99e2711d28ef7
Correct handling of fsync failures with tar mode of walmethods.c

This file has been missing the fact that it needs to report back to
callers a proper failure on fsync calls.  I have spotted the one in
tar_finish() while Kuntal has spotted the one in tar_close().

Backpatch down to 10 where this code has been introduced.

Reported by: Michael Paquier, Kuntal Ghosh
Author: Michael Paquier
Reviewed-by: Kuntal Ghosh, Magnus Hagander
Discussion: https://postgr.es/m/20180625024356.GD1146@paquier.xyz
src/bin/pg_basebackup/walmethods.c