1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/lib/pgBackRest/Common
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
..
Http Set TCP keepalives on S3 connections. 2018-12-18 22:12:59 +02:00
Io Fix possible truncated WAL segments when an error occurs mid-write. 2019-02-15 11:52:39 +02:00
Cipher.pm Merge crypto/random module into crypto/crypto. 2018-11-06 20:04:16 -05:00
Exception.pm Fix issue where errors raised in C were not logged when called from Perl. 2018-07-20 08:11:34 -04:00
ExceptionAuto.pm Add Exec object. 2019-01-18 11:45:40 +02:00
Ini.pm Rename PGBACKREST/BACKREST constants to PROJECT. 2018-11-24 19:05:03 -05:00
Lock.pm Improved lock implementation written in C. 2018-04-11 09:36:12 -04:00
Log.pm Improve logging. 2018-03-12 11:03:38 -04:00
String.pm Improve performance of list requests on S3. 2017-10-20 14:10:16 -04:00
Wait.pm Removed extraneous use lib directives from Perl modules. 2016-11-04 13:56:26 +02:00
Xml.pm Improve support for special characters in filenames. 2018-09-10 10:54:34 -04:00