]> 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:56:55 +0000 (09:56 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 26 Jun 2018 00:56:55 +0000 (09:56 +0900)
commit324076a6261756d6f5b3514ed2b2f715b656ba90
treedaa47b67362790d7bc8b90c4814ea852a4bc0d3c
parent99fb44357c14bf674966b6f08afd311028ce827c
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