1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/lib/pgBackRest/Common/Io
David Steele d211c2b8b5 Fix possible truncated WAL segments when an error occurs mid-write.
The file write object destructors called close() and finalized the file even if it was not completely written.  This was an issue in both the C and Perl code.

Rewrite the destructors to simply free resources (like file handles) rather than calling the close() method.  This leaves the temp file in place for filesystems that use temp files.

Add unit tests to prevent regression.

Reported by blogh.
2019-02-15 11:52:39 +02:00
..
Base.pm Fix possible truncated WAL segments when an error occurs mid-write. 2019-02-15 11:52:39 +02:00
Buffered.pm Improve performance of HTTPS client. 2018-02-18 14:53:27 -05:00
Filter.pm Add eof to S3 file driver (required for encryption support). 2017-11-06 12:40:54 -05:00
Handle.pm Fix possible truncated WAL segments when an error occurs mid-write. 2019-02-15 11:52:39 +02:00
Process.pm Replace dynamically built class hierarchies in I/O layer with fixed parent() calls. 2017-10-22 19:07:17 -04:00